--- apiVersion: apps/v1 kind: Deployment metadata: labels: app: frontend name: frontend spec: replicas: 3 selector: matchLabels: app: frontend template: metadata: labels: app: frontend spec: containers: - name: frontend image: quay.io/skupper/patient-portal-frontend env: - name: DATABASE_SERVICE_HOST value: database - name: DATABASE_SERVICE_PORT value: "5432" - name: PAYMENT_PROCESSOR_SERVICE_HOST value: payment-processor - name: PAYMENT_PROCESSOR_SERVICE_PORT value: "8080" ports: - containerPort: 8080 --- apiVersion: v1 kind: Service metadata: labels: app: frontend name: frontend spec: ports: - port: 8080 protocol: TCP targetPort: 8080 selector: app: frontend type: ClusterIP