--- apiVersion: apps/v1 kind: Deployment metadata: name: frontend namespace: apps spec: replicas: 1 selector: matchLabels: app: frontend template: metadata: labels: app: frontend spec: containers: - name: go image: public.ecr.aws/awsvijisarathy/k8s-frontend:v1 imagePullPolicy: Always env: - name: DATASTORE_SERVICE_URL value: datastore.sarathy.io ports: - name: http containerPort: 3000 protocol: TCP resources: requests: cpu: "50m" memory: "128Mi" livenessProbe: httpGet: path: /live port: 3000 initialDelaySeconds: 10 timeoutSeconds: 1 periodSeconds: 10 failureThreshold: 3 readinessProbe: httpGet: path: /ready port: 3000 initialDelaySeconds: 10 timeoutSeconds: 1 periodSeconds: 10 failureThreshold: 3 --- apiVersion: v1 kind: Service metadata: name: frontend-svc namespace: apps spec: type: ClusterIP ports: - port: 80 protocol: TCP targetPort: 3000 selector: app: frontend