Skip to content

Instantly share code, notes, and snippets.

@samdfonseca
Created March 4, 2020 19:30
Show Gist options
  • Save samdfonseca/06fa108817eb4a0307fa6d2c76759598 to your computer and use it in GitHub Desktop.
Save samdfonseca/06fa108817eb4a0307fa6d2c76759598 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: wdb-server-service
labels:
run: wdb-server
spec:
selector:
run: wdb-server
type: ClusterIP
sessionAffinity: None
ports:
- port: 1984
protocol: TCP
targetPort: 1984
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: wdb-server
labels:
run: wdb-server
spec:
replicas: 1
selector:
matchLabels:
run: wdb-server
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
run: wdb-server
spec:
containers:
- name: wdb-server
image: kozea/wdb
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- curl
- localhost:1984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment