Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
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

This comment has been minimized.

Copy link
Owner Author

commented Sep 11, 2019

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
You can’t perform that action at this time.