Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: apps/v1
kind: Deployment
metadata:
name: guids
labels:
app: guids
spec:
replicas: 2
selector:
matchLabels:
app: guids
template:
metadata:
labels:
app: guids
spec:
containers:
- name: guids
image: alexellis2/guid-service:latest
ports:
- containerPort: 9000
livenessProbe:
httpGet:
scheme: HTTP
path: /guid
port: 9000
initialDelaySeconds: 30
timeoutSeconds: 30
---
kind: Service
apiVersion: v1
metadata:
name: guids
spec:
selector:
app: guids
ports:
- protocol: TCP
port: 80
targetPort: 9000
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: guids
spec:
rules:
- host: guids.k8s-example.addshore.com
http:
paths:
- backend:
serviceName: guids
servicePort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.