Skip to content

Instantly share code, notes, and snippets.

@Dakuan
Last active December 22, 2017 15:34
Show Gist options
  • Save Dakuan/a6ebff0f5d324f75d0581421252c3d77 to your computer and use it in GitHub Desktop.
Save Dakuan/a6ebff0f5d324f75d0581421252c3d77 to your computer and use it in GitHub Desktop.
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: expected-date-svc
name: expected-date-svc
namespace: default
spec:
replicas: 3
selector:
matchLabels:
run: expected-date-svc
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: expected-date-svc
spec:
containers:
- image: expected_date_svc:v1
imagePullPolicy: IfNotPresent
name: expected-date-svc
ports:
- containerPort: 8080
protocol: TCP
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
labels:
run: expected-date-svc
name: expected-date-svc
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
run: expected-date-svc
sessionAffinity: None
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment