view service/rdf_to_mqtt/deploy.yaml @ 1714:4cbe3df8f48f

rewrite to use starlette/etc
author drewp@bigasterisk.com
date Sun, 24 Apr 2022 02:15:30 -0700
parents 6c8139a30025
children 3f4b447d65f5
line wrap: on
line source

apiVersion: apps/v1
kind: Deployment
metadata:
  name: rdf-to-mqtt
spec:
  replicas: 1
  selector:
    matchLabels:
      app: rdf-to-mqtt
  template:
    metadata:
      labels:
        app: rdf-to-mqtt
    spec:
      containers:
        - name: rdf-to-mqtt
          image: bang5:5000/rdf_to_mqtt_image
          imagePullPolicy: "Always"
          ports:
          - containerPort: 10008
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: "kubernetes.io/hostname"
                operator: In
                values: ["bang"]
---
apiVersion: v1
kind: Service
metadata:
  name: rdf-to-mqtt
spec:
  ports:
  - {port: 10008, targetPort: 10008}
  selector:
    app: rdf-to-mqtt