diff options
Diffstat (limited to '')
-rw-r--r-- | kubernetes/bitlbee-purple/bitlbee-data-volume.yaml | 12 | ||||
-rw-r--r-- | kubernetes/bitlbee-purple/bitlbee-deployment.yaml | 40 | ||||
-rw-r--r-- | kubernetes/bitlbee-purple/bitlbee.conf (renamed from kubernetes/bitlbee-purple/conf/bitlbee.conf) | 2 | ||||
-rwxr-xr-x | kubernetes/bitlbee-purple/deploy.sh | 9 |
4 files changed, 54 insertions, 9 deletions
diff --git a/kubernetes/bitlbee-purple/bitlbee-data-volume.yaml b/kubernetes/bitlbee-purple/bitlbee-data-volume.yaml new file mode 100644 index 0000000..e2ed65b --- /dev/null +++ b/kubernetes/bitlbee-purple/bitlbee-data-volume.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + creationTimestamp: null + name: bitlbee-data +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Mi +status: {} diff --git a/kubernetes/bitlbee-purple/bitlbee-deployment.yaml b/kubernetes/bitlbee-purple/bitlbee-deployment.yaml index 642794a..a8971fa 100644 --- a/kubernetes/bitlbee-purple/bitlbee-deployment.yaml +++ b/kubernetes/bitlbee-purple/bitlbee-deployment.yaml @@ -17,16 +17,40 @@ spec: containers: - name: bitlbee-libpurple image: ezkrg/bitlbee-libpurple:debian-20220408145536 + imagePullPolicy: IfNotPresent + command: + - /usr/sbin/bitlbee + - -F + - -n + - -u + - bitlbee + - -c + - /var/lib/bitlbee/bitlbee.conf + - -d + - /bitlbee-user-data/ ports: - containerPort: 6667 - # volumeMounts: - # - name: bitlbee-libpurple-conf - # mountPath: /var/lib/bitlbee - # readOnly: true - # volumes: - # - name: bitlbee-conf - # configMap: - # name: bitlbee-config-file + volumeMounts: + - name: bitlbee-conf + mountPath: /var/lib/bitlbee/bitlbee.conf + subPath: bitlbee.conf + readOnly: true + - name: bitlbee-data + mountPath: /bitlbee-user-data/ + env: + - name: HTTPS_PROXY + value: socks5://192.168.1.103:9995 + - name: HTTP_PROXY + value: socks5://192.168.1.103:9995 + - name: NO_PROXY + value: localhost, 127.0.0.1, 10.0.0.0/24 + volumes: + - name: bitlbee-conf + configMap: + name: bitlbee-config-file + - name: bitlbee-data + persistentVolumeClaim: + claimName: bitlbee-data --- apiVersion: v1 kind: Service diff --git a/kubernetes/bitlbee-purple/conf/bitlbee.conf b/kubernetes/bitlbee-purple/bitlbee.conf index 4a1540b..e230337 100644 --- a/kubernetes/bitlbee-purple/conf/bitlbee.conf +++ b/kubernetes/bitlbee-purple/bitlbee.conf @@ -118,7 +118,7 @@ ConfigDir = /var/lib/bitlbee ## ## Proxy = http://john:doe@proxy.localnet.com:8080 ## Proxy = socks4://socksproxy.localnet.com -## Proxy = socks5://socksproxy.localnet.com +Proxy = socks5://192.168.1.103:9995 [defaults] diff --git a/kubernetes/bitlbee-purple/deploy.sh b/kubernetes/bitlbee-purple/deploy.sh new file mode 100755 index 0000000..a9ee40a --- /dev/null +++ b/kubernetes/bitlbee-purple/deploy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +kubectl create configmap bitlbee-config-file --from-file=bitlbee.conf +kubectl apply -f ./bitlbee-data-volume.yaml +kubectl apply -f ./bitlbee-deployment.yaml + +# kubectl delete pod mongodb +# kubectl delete pvc +# kubectl delete pv |