Skip to content

Instantly share code, notes, and snippets.

@lalyos
Created July 5, 2019 14:18
Show Gist options
  • Save lalyos/bf6baaa15b108d05e0acd491dec85634 to your computer and use it in GitHub Desktop.
Save lalyos/bf6baaa15b108d05e0acd491dec85634 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: bad-app
spec:
replicas: 0
selector:
matchLabels:
app: bad
template:
metadata:
labels:
app: bad
tier: backend
spec:
containers:
- name: app-backend
image: containersol/k8s-sample-app:3.14159
ports:
- containerPort: 9292
readinessProbe:
httpGet:
path: /neverready
port: 9292
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1
livenessProbe:
httpGet:
path: /brokeness
port: 9292
scheme: HTTP
initialDelaySeconds: 15
periodSeconds: 30
timeoutSeconds: 5
apiVersion: v1
kind: Service
metadata:
name: bad-app-svc
spec:
type: NodePort
ports:
- name: http
port: 9292
targetPort: 9292
selector:
tier: frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment