--- apiVersion: apps/v1 kind: Deployment metadata: name: outfleet labels: app: outfleet annotations: reloader.stakater.com/auto: "true" spec: selector: matchLabels: app: outfleet replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: outfleet spec: hostname: outfleet nodeSelector: kubernetes.io/hostname: master.tail2fe2d.ts.net containers: - name: outfleet-web image: 'ultradesu/outfleet:v2' imagePullPolicy: Always command: ["/bin/sh"] args: - "-c" - | python ./manage.py makemigrations vpn python ./manage.py migrate python ./manage.py create_admin python ./manage.py runserver 0.0.0.0:8000 envFrom: - secretRef: name: outfleet-secrets env: # value: "true" - name: ALLOWED_HOSTS # - name: DEBUG value: "*" ports: - name: http containerPort: 8000 protocol: TCP - name: outfleet-redis image: 'redis:latest' ports: - name: redis containerPort: 6379 protocol: TCP - name: outfleet-celery-worker image: 'ultradesu/outfleet:v2' envFrom: - secretRef: name: outfleet-secrets command: - celery - -A - mysite - worker - --loglevel=INFO - name: outfleet-celery-beat image: 'ultradesu/outfleet:v2' command: - celery - -A - mysite - beat - --loglevel=INFO --- apiVersion: v1 kind: Service metadata: name: outfleet spec: selector: app: outfleet ports: - protocol: TCP port: 80 targetPort: 8000