镜像自地址
https://github.com/devcm-repo/helm-charts.git
已同步 2026-09-11 13:22:57 +00:00
比较提交
6
次代码提交
@@ -1,5 +1,8 @@
|
||||
helm charts
|
||||
## helm charts
|
||||
|
||||
```shell
|
||||
helm repo add devcm https://devcm-repo.github.io/helm-charts
|
||||
```
|
||||
|
||||
pgedge
|
||||
### charts
|
||||
- tailscale-derp
|
||||
|
||||
@@ -9,5 +9,5 @@ maintainers:
|
||||
email: [email protected]
|
||||
url: https://github.com/devcm-repo
|
||||
icon: https://tailscale.com/files/apple-touch-icon.png
|
||||
version: 0.0.1
|
||||
appVersion: 1.44.0
|
||||
version: 0.0.2
|
||||
appVersion: 1.68.0
|
||||
|
||||
@@ -5,7 +5,7 @@ This Helm Chart is a Tailscale container deployment for a tailnet relay server (
|
||||
## Installing the Helm Chart
|
||||
|
||||
```shell
|
||||
helm repo add tailscale https://spreitzer.ch/helm-tailscale
|
||||
helm repo add tailscale https://devcm-repo.github.io/helm-charts
|
||||
helm install tailscale-derp tailscale/tailscale-derp
|
||||
```
|
||||
|
||||
@@ -14,15 +14,10 @@ helm install tailscale-derp tailscale/tailscale-derp
|
||||
A working configuration:
|
||||
|
||||
```yaml
|
||||
service:
|
||||
annotations:
|
||||
service.beta.kubernetes.io/azure-dns-label-name: my-derp-01
|
||||
|
||||
hostname: my-derp-01.switzerlandnorth.cloudapp.azure.com
|
||||
hostname: derp.dev.cm
|
||||
|
||||
nodeSelector:
|
||||
topology.kubernetes.io/region: switzerlandnorth
|
||||
topology.kubernetes.io/zone: switzerlandnorth-1
|
||||
topology.kubernetes.io/region: cn-hk
|
||||
```
|
||||
|
||||
## Helm Chart Values
|
||||
@@ -33,6 +28,9 @@ nodeSelector:
|
||||
| `image.pullPolicy` | Kubernetes pullPolicy to use for starting the container image. | `IfNotPresent` |
|
||||
| `service.type` | Kubernetes Service type. | `LoadBalancer` |
|
||||
| `service.annotations` | A map/dict of Kubernetes Service annotations. | `{}` |
|
||||
| `hostname` | DERP hostname to use. Must be the same as of the derpMap in the tailnet ACL. | `derp.example.com` |
|
||||
| `nodeSelector` | A map/dict of Kubernetes Pod nodeSelector node labels. | `{}` |
|
||||
| `affinity` | A map/dict of Kubernetes Pod affinity rules. | `{}` |
|
||||
| `tailscale.hostname` | Tailscale hostname | `Release.Name` |
|
||||
| `tailscale.auth_key` | Tailscale auth_key | `''` |
|
||||
| `drep.hostname` | Derp server hostname | `'derp.examples.com'` |
|
||||
| `drep.verify_clients` | Derp server will enable authentication | `true` |
|
||||
|
||||
@@ -21,11 +21,20 @@ spec:
|
||||
affinity: {{- toYaml .Values.affinity | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
||||
name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
||||
image: "{{ .Values.image.name }}:v{{ .Chart.AppVersion }}"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 443
|
||||
- containerPort: 3478
|
||||
args:
|
||||
- "--hostname={{ .Values.hostname }}"
|
||||
env:
|
||||
- name: TAILSCALE_HOSTNAME
|
||||
value: "{{ or .Values.tailscale.hostname .Release.Name }}"
|
||||
- name: TAILSCALE_AUTH_KEY
|
||||
value: "{{ .Values.tailscale.auth_key }}"
|
||||
- name: TAILSCALE_DERP_HOSTNAME
|
||||
value: "{{ .Values.drep.hostname }}"
|
||||
- name: TAILSCALE_DERP_ADDR
|
||||
value: "{{ .Values.drep.addr }}"
|
||||
- name: TAILSCALE_DERP_VERIFY_CLIENTS
|
||||
value: "{{ .Values.drep.verify_clients }}"
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
image:
|
||||
name: docker.io/sspreitzer/tailscale-derp
|
||||
name: docker.io/devcm/tailscale-derp
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
type: LoadBalancer
|
||||
type: ClusterIP
|
||||
annotations: {}
|
||||
|
||||
hostname: 'derp.example.com'
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
affinity: {}
|
||||
|
||||
tailscale:
|
||||
# hostname: ''
|
||||
auth_key: ''
|
||||
|
||||
drep:
|
||||
hostname: derp.examples.com
|
||||
# addr: ''
|
||||
verify_clients: true
|
||||
|
||||
在新议题中引用
屏蔽一个用户