apiVersion: apps/v1 kind: Deployment metadata: name: tickets namespace: probes-lesson spec: replicas: 3 selector: matchLabels: app: tickets template: metadata: labels: app: tickets spec: containers: - name: tickets image: probes-lesson:v1 # Build and load the local fixture first. imagePullPolicy: Never ports: - name: http containerPort: 8080 env: - name: STARTUP_MS value: '50000' resources: requests: cpu: 100m memory: 64Mi limits: memory: 128Mi # #region probes startupProbe: httpGet: path: /startupz port: http periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 24 readinessProbe: httpGet: path: /readyz port: http periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 2 successThreshold: 1 livenessProbe: httpGet: path: /livez port: http periodSeconds: 5 timeoutSeconds: 1 failureThreshold: 3 # #endregion --- apiVersion: v1 kind: Service metadata: name: tickets namespace: probes-lesson spec: selector: app: tickets ports: - port: 80 targetPort: http