Fix tunnel secrets

This commit is contained in:
Khue Doan 2021-06-27 13:07:28 +07:00
parent afc15f27eb
commit 61eb7e01eb
No known key found for this signature in database
GPG Key ID: 4C1A90A461B3C27B

View File

@ -31,10 +31,16 @@ spec:
- name: config - name: config
mountPath: /etc/cloudflared/config mountPath: /etc/cloudflared/config
readOnly: true readOnly: true
- name: certs
mountPath: /etc/cloudflared
readOnly: true
- name: creds - name: creds
mountPath: /etc/cloudflared/creds mountPath: /etc/cloudflared/creds
readOnly: true readOnly: true
volumes: volumes:
- name: certs
secret:
secretName: tunnel-certificates
- name: creds - name: creds
secret: secret:
secretName: tunnel-credentials secretName: tunnel-credentials
@ -51,11 +57,13 @@ metadata:
name: cloudflared name: cloudflared
data: data:
config.yaml: | config.yaml: |
tunnel: test-tunnel tunnel: homelab
credentials-file: /etc/cloudflared/creds/credentials.json credentials-file: /etc/cloudflared/creds/credentials.json
metrics: 0.0.0.0:2000 metrics: 0.0.0.0:2000
no-autoupdate: true no-autoupdate: true
ingress: ingress:
- hostname: git.khuedoan.com - hostname: git.khuedoan.com
service: http://git:80 service: http://192.168.1.150
- hostname: drone.khuedoan.com
service: http://192.168.1.150
- service: http_status:404 - service: http_status:404