File tree Expand file tree Collapse file tree 4 files changed +102
-0
lines changed Expand file tree Collapse file tree 4 files changed +102
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : Application
3
+ metadata :
4
+ name : cloudflare-tunnel
5
+ namespace : argocd
6
+ spec :
7
+ project : infra
8
+ sources :
9
+ - repoURL : https://github.com/code4romania/code4ro-k8s.git
10
+ path : infra/cloudflare-tunnel
11
+ targetRevision : HEAD
12
+ destination :
13
+ namespace : cloudflare-tunnel
14
+ server : https://kubernetes.default.svc
15
+ syncPolicy :
16
+ syncOptions :
17
+ - CreateNamespace=true
Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment
3
+ metadata :
4
+ labels :
5
+ app : cloudflared
6
+ name : cloudflared-deployment
7
+ spec :
8
+ replicas : 1
9
+ selector :
10
+ matchLabels :
11
+ pod : cloudflared
12
+ template :
13
+ metadata :
14
+ creationTimestamp : null
15
+ labels :
16
+ pod : cloudflared
17
+ spec :
18
+ containers :
19
+ - command :
20
+ - cloudflared
21
+ - tunnel
22
+ - --config
23
+ - /etc/cloudflared/config/config.yaml
24
+ - run
25
+ env :
26
+ - name : TUNNEL_TOKEN
27
+ valueFrom :
28
+ secretKeyRef :
29
+ name : cloudflare-tunnel
30
+ key : TUNNEL_TOKEN
31
+ image : cloudflare/cloudflared:latest
32
+ name : cloudflared
33
+ livenessProbe :
34
+ httpGet :
35
+ # Cloudflared has a /ready endpoint which returns 200 if and only if
36
+ # it has an active connection to the edge.
37
+ path : /ready
38
+ port : 2000
39
+ failureThreshold : 1
40
+ initialDelaySeconds : 10
41
+ periodSeconds : 10
42
+ volumeMounts :
43
+ - name : config
44
+ mountPath : /etc/cloudflared/config
45
+ readOnly : true
46
+ volumes :
47
+ - name : config
48
+ configMap :
49
+ name : cloudflared-configmap
50
+ items :
51
+ - key : config.yaml
52
+ path : config.yaml
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ConfigMap
3
+ metadata :
4
+ name : cloudflared-configmap
5
+ data :
6
+ config.yaml : |
7
+ tunnel: code4ro-k8s-hetzner
8
+ metrics: 0.0.0.0:2000
9
+ warp-routing:
10
+ enabled: true
11
+ no-autoupdate: true
12
+ ingress:
13
+ - hostname: cd.code4.ro
14
+ service: http://argocd-server.argocd:8080
15
+ - hostname: metrics.code4.ro
16
+ service: http://victoria-metrics-grafana.victoria-metrics:80
17
+ - service: http_status:404
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : bitnami.com/v1alpha1
3
+ kind : SealedSecret
4
+ metadata :
5
+ creationTimestamp : null
6
+ name : cloudflare-tunnel
7
+ namespace : victoria-metrics
8
+ spec :
9
+ encryptedData :
10
+ TUNNEL_TOKEN : AgCS2lVg1jD+wlfZJdRo6ZOvNs/zVOFTiyQ5Q7s2MGaQcTcZfz4oUxFkwf1E7ZBha2hBHptGl7famYaYc6XRbbQeQhis+qfMuEh7ZqT9Bom5WEs0dQjcN6iqJjEWgcPUapQPPlpp+9AdSMlfU5vAB1NZ4eqvfsTQ/MlWFAlLjLsf3X9ZG/7UvZ+9iKaycxZI4Rthefjouu+avnc47P0RFvFQctplpTVcKf4PfTmSbsUpkkvcNxFJuX5xE1Ouyxtu9hbN+EWpQFE+Sn9hWTGAREqaP2B6XuTYBvfdpcLBn2reb/9lW+Suoy61xsEgkG2Tuv7D7y7S4g/IOEAxCBTW1Fwx1adMjhjYnoO+YXkQdsoEvsCHtgNTqABiPC8OATYG1qrwxY+auRTMO5Bci0bL373vThKApz+bMEY+zf5z2LypZbsslxJaFtVQW4j6Tul2su08fif7qvpMqFL77QYq9N2HctKYcOFXzCut2rCelFLRvuSRDoRb3XWD9PXBxa8LWwc4jVvKFk34c30Kv1NH0SHOZXeHvDzMmQVPpIN0rfiZtAu1LdIS74e2UTTqfOSKGr5eH7bNC8V1RvRMuYhxWmX9ZP+rtM6Yh/9cZI6vPjFYVCQh29Iqjlt6U0ZzOrkoV61tapMYYsr1B7ywB4tx0nm8y27SFo3EMxU0d8BKCtp4iwWAoox6G842qjZwJMTabbhwJybcbY2zYa7XS2lk5YctSgyAE87SCogb7m9pbOBjgmGmVrrtaxyLLtY/K/yIWV8BvW3bb+DdQafkY6X2ob9Ux90Xs6Y4SGWcN+Ic0ywrA3N21Tcx3QhE8aSeWRvF6gX+weMA/IvuqNxCCg99JTu/o730r/Xj4xheeOSvkJP3GjY4RkMoHC1m6HwNu0F9LFzVIKqqC4IPQXf4BQ7HXZu+h0l8Jq733OK3ztBJ7v3FhJlFswTDU2eu
11
+ template :
12
+ metadata :
13
+ creationTimestamp : null
14
+ name : cloudflare-tunnel
15
+ namespace : victoria-metrics
16
+ type : Opaque
You can’t perform that action at this time.
0 commit comments