Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created November 7, 2022 03:25
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 gowatana/bdea80b3b9951a656d923b32ec8cd45b to your computer and use it in GitHub Desktop.
Save gowatana/bdea80b3b9951a656d923b32ec8cd45b to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dep-game2048
spec:
replicas: 1
selector:
matchLabels:
run: game2048
template:
metadata:
labels:
run: game2048
spec:
containers:
- name: game2048
image: gowatana/docker-2048
ports:
- containerPort: 80
protocol: TCP
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: svc-2048
spec:
type: LoadBalancer
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: game2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment