Skip to content

Instantly share code, notes, and snippets.

@confiq
Last active June 25, 2020 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save confiq/cbc9b94c54edaf9a951457113367a939 to your computer and use it in GitHub Desktop.
Save confiq/cbc9b94c54edaf9a951457113367a939 to your computer and use it in GitHub Desktop.
simple k8s service
apiVersion: apps/v1
kind: Deployment
metadata:
name: kuard
spec:
selector:
matchLabels:
app: kuard
replicas: 1
template:
metadata:
labels:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:blue
imagePullPolicy: Always
name: kuard
ports:
- containerPort: 8080
apiVersion: v1
kind: Service
metadata:
name: kuard
spec:
ports:
- port: 80
targetPort: 8080
protocol: TCP
selector:
app: kuard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment