Skip to content

Instantly share code, notes, and snippets.

@sebbrandt87
Last active November 21, 2018 07:45
Show Gist options
  • Save sebbrandt87/aa5c89d7e92ca09faaa95dfb71ebe9fc to your computer and use it in GitHub Desktop.
Save sebbrandt87/aa5c89d7e92ca09faaa95dfb71ebe9fc to your computer and use it in GitHub Desktop.
deployment.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: si-test
name: si-test
namespace: siws
spec:
replicas: 1
selector:
matchLabels:
app: si-test
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: si-test
spec:
containers:
- image: gcr.io/google_containers/defaultbackend:1.4
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: si-test
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
@sebbrandt87
Copy link
Author

sebbrandt87 commented Nov 21, 2018

not the droids you are looking for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment