1
0
镜像自地址 https://github.com/devcm-repo/helm-charts.git 已同步 2026-06-06 04:11:05 +00:00

feat(tailscale): tailscale drep refactoring

这个提交包含在:
2024-06-25 12:10:23 +08:00
未验证
父节点 f9ed71a7a6
当前提交 f37a64291c
修改 5 个文件,包含 44 行新增29 行删除
+1 -1
查看文件
@@ -9,5 +9,5 @@ maintainers:
email: admin@dev.cm
url: https://github.com/devcm-repo
icon: https://tailscale.com/files/apple-touch-icon.png
version: 0.0.1
version: 0.0.2
appVersion: 1.68.0
+6 -8
查看文件
@@ -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` |
+17 -8
查看文件
@@ -21,11 +21,20 @@ spec:
affinity: {{- toYaml .Values.affinity | nindent 8 }}
{{- end }}
containers:
- name: "{{ .Release.Name }}-{{ .Chart.Name }}"
image: "{{ .Values.image.name }}:v{{ .Chart.AppVersion }}"
ports:
- containerPort: 80
- containerPort: 443
- containerPort: 3478
args:
- "--hostname={{ .Values.hostname }}"
name: "{{ .Release.Name }}-{{ .Chart.Name }}"
image: "{{ .Values.image.name }}:v{{ .Chart.AppVersion }}"
ports:
- containerPort: 80
- containerPort: 443
- containerPort: 3478
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 }}"
+9 -9
查看文件
@@ -10,12 +10,12 @@ spec:
selector:
app: "{{ .Release.Name }}-{{ .Chart.Name }}"
ports:
- name: http
port: 80
targetPort: 80
- name: https
port: 443
targetPort: 443
- name: stun
port: 3478
targetPort: 3478
- name: http
port: 80
targetPort: 80
- name: https
port: 443
targetPort: 443
- name: stun
port: 3478
targetPort: 3478
+11 -3
查看文件
@@ -3,10 +3,18 @@ image:
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