apiVersion: apps/v1 kind: Deployment metadata: name: podinfo namespace: test labels: app: podinfo spec: minReadySeconds: 5 revisionHistoryLimit: 5 progressDeadlineSeconds: 60 strategy: rollingUpdate: maxUnavailable: 0 type: RollingUpdate selector: matchLabels: app: podinfo template: metadata: annotations: prometheus.io/scrape: "true" labels: app: podinfo spec: containers: - name: podinfod image: quay.io/stefanprodan/podinfo:1.3.0 imagePullPolicy: IfNotPresent ports: - containerPort: 9898 name: http protocol: TCP command: - ./podinfo - --port=9898 - --level=info - --random-delay=false - --random-error=false env: - name: PODINFO_UI_COLOR valueFrom: configMapKeyRef: name: podinfo-config-env key: color - name: SECRET_USER valueFrom: secretKeyRef: name: podinfo-secret-env key: user livenessProbe: exec: command: - podcli - check - http - localhost:9898/healthz initialDelaySeconds: 5 timeoutSeconds: 5 readinessProbe: exec: command: - podcli - check - http - localhost:9898/readyz initialDelaySeconds: 5 timeoutSeconds: 5 resources: limits: cpu: 2000m memory: 512Mi requests: cpu: 100m memory: 64Mi volumeMounts: - name: configs mountPath: /etc/podinfo/configs readOnly: true - name: secrets mountPath: /etc/podinfo/secrets readOnly: true volumes: - name: configs configMap: name: podinfo-config-vol - name: secrets secret: secretName: podinfo-secret-vol