Skip to content

Instantly share code, notes, and snippets.

@rmchale
Created August 15, 2019 02:43
Show Gist options
  • Save rmchale/a597b52dfb418fe7c3710a7729608a98 to your computer and use it in GitHub Desktop.
Save rmchale/a597b52dfb418fe7c3710a7729608a98 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-deployment
spec:
selector:
matchLabels:
run: hello
replicas: 1
template:
metadata:
labels:
run: hello
spec:
containers:
- name: hello
image: vad1mo/hello-world-rest
ports:
- containerPort: 5050
livenessProbe:
httpGet:
path: /ping
port: 5050
initialDelaySeconds: 15
periodSeconds: 30
readinessProbe:
httpGet:
path: /ping
port: 5050
initialDelaySeconds: 15
periodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: hello
labels:
run: hello
annotations:
spec:
type: NodePort
ports:
- port: 5050
protocol: TCP
targetPort: 5050
selector:
run: hello
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: hello-ingress
spec:
backend:
serviceName: hello
servicePort: 5050
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment