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