镜像自地址
https://github.com/devcm-repo/helm-charts.git
已同步 2026-06-06 05:51:06 +00:00
feat(tailscale): tailscale drep refactoring
这个提交包含在:
@@ -9,5 +9,5 @@ maintainers:
|
|||||||
email: admin@dev.cm
|
email: admin@dev.cm
|
||||||
url: https://github.com/devcm-repo
|
url: https://github.com/devcm-repo
|
||||||
icon: https://tailscale.com/files/apple-touch-icon.png
|
icon: https://tailscale.com/files/apple-touch-icon.png
|
||||||
version: 0.0.1
|
version: 0.0.2
|
||||||
appVersion: 1.68.0
|
appVersion: 1.68.0
|
||||||
|
|||||||
@@ -14,15 +14,10 @@ helm install tailscale-derp tailscale/tailscale-derp
|
|||||||
A working configuration:
|
A working configuration:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
service:
|
hostname: derp.dev.cm
|
||||||
annotations:
|
|
||||||
service.beta.kubernetes.io/azure-dns-label-name: my-derp-01
|
|
||||||
|
|
||||||
hostname: my-derp-01.switzerlandnorth.cloudapp.azure.com
|
|
||||||
|
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
topology.kubernetes.io/region: switzerlandnorth
|
topology.kubernetes.io/region: cn-hk
|
||||||
topology.kubernetes.io/zone: switzerlandnorth-1
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Helm Chart Values
|
## Helm Chart Values
|
||||||
@@ -33,6 +28,9 @@ nodeSelector:
|
|||||||
| `image.pullPolicy` | Kubernetes pullPolicy to use for starting the container image. | `IfNotPresent` |
|
| `image.pullPolicy` | Kubernetes pullPolicy to use for starting the container image. | `IfNotPresent` |
|
||||||
| `service.type` | Kubernetes Service type. | `LoadBalancer` |
|
| `service.type` | Kubernetes Service type. | `LoadBalancer` |
|
||||||
| `service.annotations` | A map/dict of Kubernetes Service annotations. | `{}` |
|
| `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. | `{}` |
|
| `nodeSelector` | A map/dict of Kubernetes Pod nodeSelector node labels. | `{}` |
|
||||||
| `affinity` | A map/dict of Kubernetes Pod affinity rules. | `{}` |
|
| `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 }}
|
affinity: {{- toYaml .Values.affinity | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
name: "{{ .Release.Name }}-{{ .Chart.Name }}"
|
||||||
image: "{{ .Values.image.name }}:v{{ .Chart.AppVersion }}"
|
image: "{{ .Values.image.name }}:v{{ .Chart.AppVersion }}"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
- containerPort: 443
|
- containerPort: 443
|
||||||
- containerPort: 3478
|
- containerPort: 3478
|
||||||
args:
|
env:
|
||||||
- "--hostname={{ .Values.hostname }}"
|
- 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 }}"
|
||||||
|
|||||||
@@ -3,10 +3,18 @@ image:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: LoadBalancer
|
type: ClusterIP
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|
||||||
hostname: 'derp.example.com'
|
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
tailscale:
|
||||||
|
# hostname: ''
|
||||||
|
auth_key: ''
|
||||||
|
|
||||||
|
drep:
|
||||||
|
hostname: derp.examples.com
|
||||||
|
# addr: ''
|
||||||
|
verify_clients: true
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户