Skip to content

Instantly share code, notes, and snippets.

@bricef
Created November 13, 2020 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bricef/b7a3285007874b4cb9fa59c2a59b8674 to your computer and use it in GitHub Desktop.
Save bricef/b7a3285007874b4cb9fa59c2a59b8674 to your computer and use it in GitHub Desktop.
Podinfo deployment manifest
apiVersion: v1
kind: Service
metadata:
name: podinfo
namespace: dev
labels:
app: podinfo
spec:
type: ClusterIP
ports:
- name: http
port: 9898
targetPort: 9898
protocol: TCP
selector:
app: podinfo
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: podinfo
namespace: dev
spec:
replicas: 3
selector:
matchLabels:
app: podinfo
template:
metadata:
labels:
app: podinfo
annotations:
timestamp: 2020-10-21T20:25
spec:
containers:
- name: podinfod
image: quay.io/stefanprodan/podinfo:3.1.5
command:
- ./podinfo
- --port=9898
ports:
- containerPort: 9898
readinessProbe:
httpGet:
path: /readyz
port: 9898
initialDelaySeconds: 1
periodSeconds: 5
failureThreshold: 1
livenessProbe:
httpGet:
path: /healthz
port: 9898
initialDelaySeconds: 1
periodSeconds: 10
failureThreshold: 2
resources:
requests:
memory: "32Mi"
cpu: "10m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment