Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Last active February 8, 2018 09:39
Show Gist options
  • Select an option

  • Save CalvinHartwell/9dddf58eee4c1904117d7ca4e615902b to your computer and use it in GitHub Desktop.

Select an option

Save CalvinHartwell/9dddf58eee4c1904117d7ca4e615902b to your computer and use it in GitHub Desktop.
Microbot v1 with ingress
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: microbot-v1
name: microbot-v1
spec:
replicas: 5
selector:
matchLabels:
app: microbot-v1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: microbot-v1
ima: pod
spec:
containers:
- image: dontrebootme/microbot:v1
imagePullPolicy: ""
name: microbot-v1
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
timeoutSeconds: 30
resources: {}
restartPolicy: Always
serviceAccountName: ""
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: microbot-v1
labels:
app: microbot-v1
spec:
ports:
- port: 8085
protocol: TCP
targetPort: 80
selector:
app: microbot-v1
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: microbot-v1
spec:
rules:
- host: microbot.kube.loc
http:
paths:
- path: /
backend:
serviceName: microbot-v1
servicePort: 8085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment