apiVersion: apps/v1 kind: Deployment metadata: name: video-web labels: app: video-web spec: replicas: 1 selector: matchLabels: app: video-web template: metadata: labels: app: video-web spec: containers: - name: video-web image: ${CI_REGISTRY_IMAGE}/video-web:latest imagePullPolicy: Always ports: - containerPort: 80 livenessProbe: httpGet: path: / port: 80 initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 3 resources: requests: memory: "64Mi" cpu: "50m" limits: memory: "256Mi" cpu: "250m" --- apiVersion: v1 kind: Service metadata: name: video-web spec: selector: app: video-web ports: - protocol: TCP port: 80 targetPort: 80