aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/bitlbee-purple/bitlbee-deployment.yaml
blob: a8971fa84b31a47a44260fcb8cf65d82e3f541e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
apiVersion: apps/v1
kind: Deployment
metadata:
  name: bitlbee-libpurple
  labels:
    app: bitlbee-libpurple
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bitlbee-libpurple
  template:
    metadata:
      labels:
        app: bitlbee-libpurple
    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-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
metadata:
  name: bitlebee-libpurple-service
spec:
  selector:
    app: bitlbee-libpurple
  type: LoadBalancer
  ports:
    - protocol: TCP
      name: "6667"
      port: 6667
      targetPort: 6667
      nodePort: 30667