apiVersion: apps/v1 kind: Deployment metadata: name: geocrop-api namespace: geocrop spec: replicas: 1 selector: matchLabels: app: geocrop-api template: metadata: labels: app: geocrop-api spec: containers: - name: geocrop-api image: frankchine/geocrop-api:v1 imagePullPolicy: Always ports: - containerPort: 8000 env: - name: REDIS_HOST value: "redis.geocrop.svc.cluster.local" - name: SECRET_KEY value: "portfolio-production-secret-key-123" --- apiVersion: v1 kind: Service metadata: name: geocrop-api namespace: geocrop spec: selector: app: geocrop-api ports: - port: 8000 targetPort: 8000