Compare commits

..

2 Commits

Author SHA1 Message Date
Pim van den Berg
068c38ecf5 feat: install ffsend
All checks were successful
continuous-integration/drone/push Build is passing
https://github.com/timvisee/ffsend
2024-08-27 10:05:45 +02:00
Pim van den Berg
db4526e269 feat: add kubernetes deployment 2024-08-27 09:52:54 +02:00
3 changed files with 22 additions and 0 deletions

View File

@ -31,6 +31,7 @@ RUN set -eux && \
awscli \
direnv \
&& \
curl -s -o /usr/local/bin/ffsend -L $(curl -s https://api.github.com/repos/timvisee/ffsend/releases | jq -r '.[0].assets[] | select(.name | contains("linux-x64-static")).browser_download_url') && \
rm -rf /var/lib/apt/lists/* && \
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
/usr/sbin/locale-gen && \

View File

@ -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
```

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