Last active
December 13, 2020 05:57
-
-
Save gowatana/3a0179c41348e65c9769f71fadeace2d to your computer and use it in GitHub Desktop.
Kubernetesで2048。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
selector: | |
run: game2048 | |
削除。
karbon$ kubectl delete ns test01
namespace "test01" deleted
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ネームスペース作成。
2048をデプロイ。
NodePort確認。例では31031
WorkerノードのIPアドレスの確認。