diff options
author | terminaldweller <thabogre@gmail.com> | 2022-10-08 08:25:21 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-10-08 08:25:21 +0000 |
commit | f9e8deec17ea1784b45e7ea620ed0fef49170359 (patch) | |
tree | 8c342caff8b39c58b1c91ca9426841e55e743357 /kubernetes | |
parent | update (diff) | |
download | scripts-f9e8deec17ea1784b45e7ea620ed0fef49170359.tar.gz scripts-f9e8deec17ea1784b45e7ea620ed0fef49170359.zip |
update
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 | ||||
-rw-r--r-- | kubernetes/debug/debug-deployment.yaml | 46 |
5 files changed, 100 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 diff --git a/kubernetes/debug/debug-deployment.yaml b/kubernetes/debug/debug-deployment.yaml new file mode 100644 index 0000000..a11d80d --- /dev/null +++ b/kubernetes/debug/debug-deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: debug + labels: + app: debug +spec: + replicas: 1 + selector: + matchLabels: + app: debug + template: + metadata: + labels: + app: debug + spec: + containers: + - name: debug + image: 192.168.1.103:5000/bullseye-slim + imagePullPolicy: IfNotPresent + command: + - tail + - -f + - /dev/null + env: + - name: HTTP_PROXY + value: socks5://192.168.1.103:9995 + - name: HTTPS_PROXY + value: socks5://192.168.1.103:9995 + - name: NO_PROXY + value: localhost, 127.0.0.1, 10.0.0.0/24 +--- +apiVersion: v1 +kind: Service +metadata: + name: debug-service +spec: + selector: + app: debug + type: LoadBalancer + ports: + - protocol: TCP + name: "7777" + port: 27777 + targetPort: 27777 + nodePort: 30777 |