Skip to content

Instantly share code, notes, and snippets.

@allenmichael
Created June 17, 2020 22:07
Show Gist options
  • Save allenmichael/a07cdca78d5cb3a129188ec568d263d7 to your computer and use it in GitHub Desktop.
Save allenmichael/a07cdca78d5cb3a129188ec568d263d7 to your computer and use it in GitHub Desktop.
Tarot K8s
apiVersion: apps/v1
kind: Deployment
metadata:
name: esoteric-api
labels:
app: esoteric-api
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: esoteric-api
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: esoteric-api
spec:
containers:
- image: amsxbg/tableofnothing
imagePullPolicy: Always
name: esoteric-api
ports:
- containerPort: 80
protocol: TCP
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: esoteric-api
spec:
backend:
serviceName: esoteric-api
servicePort: 80
apiVersion: v1
kind: Service
metadata:
name: esoteric-api
spec:
selector:
app: esoteric-api
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment