Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created September 11, 2019 12:13
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/47f40f849543a4c9656f767271788e09 to your computer and use it in GitHub Desktop.
Save gowatana/47f40f849543a4c9656f767271788e09 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: NodePort
ports:
- port: 80
protocol: TCP
targetPort: 80
nodePort: 30500
selector:
run: game2048
@gowatana
Copy link
Author

nodePortを決め打ち。

実行方法はこれを参照
https://gist.github.com/gowatana/3a0179c41348e65c9769f71fadeace2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment