feat: add kubernetes deployment

This commit is contained in:
Pim van den Berg 2024-08-27 09:52:00 +02:00
parent e63eca9978
commit db4526e269
2 changed files with 21 additions and 0 deletions

View File

@ -16,3 +16,14 @@ $ docker run -it \
--name swiss \ --name swiss \
pommib/swiss:latest pommib/swiss:latest
``` ```
## Kubernetes
```
$ kubectl create namespace swiss
$ kubectl apply -f pod.yaml -n swiss
$ kubectl get pods -n swiss
$ kubectl describe pod -n swiss
$ kubectl exec --stdin --tty -n swiss swiss -- /bin/bash
$ kubectl delete namespace swiss
```

10
pod.yaml Normal file
View File

@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
name: swiss
spec:
containers:
- name: swiss
image: pommib/swiss:latest
hostNetwork: true
dnsPolicy: Default