kind: Deployment apiVersion: apps/v1 metadata: name: frontend labels: app.kubernetes.io/name: 'frontend' app.kubernetes.io/part-of: 'generate-connectionstring-dependency' spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: frontend template: metadata: labels: app.kubernetes.io/name: 'frontend' app.kubernetes.io/part-of: 'generate-connectionstring-dependency' spec: containers: - name: frontend image: frontend:1.0.0 imagePullPolicy: Always env: - name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS value: 'true' - name: ASPNETCORE_URLS value: 'http://*' - name: PORT value: '80' - name: SERVICE__FRONTEND__PROTOCOL value: 'http' - name: SERVICE__FRONTEND__PORT value: '80' - name: SERVICE__FRONTEND__HOST value: 'frontend' - name: CONNECTIONSTRINGS__DEPENDENCY valueFrom: secretKeyRef: name: 'binding-production-dependency-secret' key: 'connectionstring' ports: - containerPort: 80 ... --- kind: Service apiVersion: v1 metadata: name: frontend labels: app.kubernetes.io/name: 'frontend' app.kubernetes.io/part-of: 'generate-connectionstring-dependency' spec: selector: app.kubernetes.io/name: frontend type: ClusterIP ports: - name: http protocol: TCP port: 80 targetPort: 80 ...