From db4526e269cd1a17101a0fc09073ba5706a2f71f Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 27 Aug 2024 09:52:00 +0200 Subject: [PATCH] feat: add kubernetes deployment --- README.md | 11 +++++++++++ pod.yaml | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pod.yaml diff --git a/README.md b/README.md index ab120f5..d9dee9c 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,14 @@ $ docker run -it \ --name swiss \ 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 +``` diff --git a/pod.yaml b/pod.yaml new file mode 100644 index 0000000..28e3415 --- /dev/null +++ b/pod.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Pod +metadata: + name: swiss +spec: + containers: + - name: swiss + image: pommib/swiss:latest + hostNetwork: true + dnsPolicy: Default