Skip to content

Instantly share code, notes, and snippets.

@gowatana
Last active December 13, 2020 05:57
Show Gist options
  • Save gowatana/3a0179c41348e65c9769f71fadeace2d to your computer and use it in GitHub Desktop.
Save gowatana/3a0179c41348e65c9769f71fadeace2d to your computer and use it in GitHub Desktop.
Kubernetesで2048。
---
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
@gowatana
Copy link
Author

削除。

karbon$ kubectl delete ns test01
namespace "test01" deleted

@gowatana
Copy link
Author

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