Skip to content

Instantly share code, notes, and snippets.

@avillela-tc
Last active September 21, 2021 15:53
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 avillela-tc/d37bed543f434f71ec0d43872d6a00aa to your computer and use it in GitHub Desktop.
Save avillela-tc/d37bed543f434f71ec0d43872d6a00aa to your computer and use it in GitHub Desktop.
Kubernetes 2048 Game YAML Manifest
---
apiVersion: v1
kind: Service
metadata:
name: "service-2048"
labels:
app: "2048"
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
type: LoadBalancer
selector:
app: "2048"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: "2048-deployment"
spec:
replicas: 1
selector:
matchLabels:
app: "2048"
template:
metadata:
labels:
app: "2048"
version: v1
spec:
containers:
- image: alexwhen/docker-2048
imagePullPolicy: Always
name: "2048"
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment