git ssh
This commit is contained in:
parent
d1775ddbe4
commit
35097a54cf
4 changed files with 19 additions and 5 deletions
BIN
charts/traefik/traefik-34.0.0.tgz
Normal file
BIN
charts/traefik/traefik-34.0.0.tgz
Normal file
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
additionalArguments:
|
||||
- --entrypoints.web.forwardedHeaders.trustedIPs=0.0.0.0/0
|
||||
- --entrypoints.websecure.forwardedHeaders.trustedIPs=0.0.0.0/0
|
||||
- --entrypoints.ssh.address=:2222
|
||||
- --entrypoints.ssh.address=:22
|
||||
- --providers.kubernetescrd.allowCrossNamespace=true
|
||||
- --log.level=INFO
|
||||
additionalVolumeMounts: []
|
||||
|
@ -262,7 +262,7 @@ ports:
|
|||
protocol: TCP
|
||||
ssh:
|
||||
nodePort: 30222
|
||||
port: 2222
|
||||
port: 22
|
||||
targetport: 2222
|
||||
traefik:
|
||||
expose:
|
||||
|
|
15
loadBalancer/traefik-helm/ssh-patch.sh
Normal file
15
loadBalancer/traefik-helm/ssh-patch.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
kubectl patch svc traefik -n traefik --type='merge' -p '{
|
||||
"spec": {
|
||||
"ports": [
|
||||
{
|
||||
"name": "ssh",
|
||||
"port": 22,
|
||||
"targetPort": 22,
|
||||
"nodePort": 30222,
|
||||
"protocol": "TCP"
|
||||
}
|
||||
]
|
||||
}
|
||||
}'
|
||||
|
|
@ -8,12 +8,11 @@ ports:
|
|||
targetPort: 443
|
||||
nodePort: 30443
|
||||
ssh:
|
||||
port: 2222
|
||||
port: 22
|
||||
targetport: 2222
|
||||
nodePort: 30222
|
||||
|
||||
service:
|
||||
type: LoadBalancer
|
||||
spec:
|
||||
externalTrafficPolicy: Local
|
||||
|
||||
|
@ -23,7 +22,7 @@ nodeSelector:
|
|||
additionalArguments:
|
||||
- "--entrypoints.web.forwardedHeaders.trustedIPs=0.0.0.0/0"
|
||||
- "--entrypoints.websecure.forwardedHeaders.trustedIPs=0.0.0.0/0"
|
||||
- "--entrypoints.ssh.address=:2222"
|
||||
- "--entrypoints.ssh.address=:22"
|
||||
- "--providers.kubernetescrd.allowCrossNamespace=true"
|
||||
- "--log.level=INFO"
|
||||
|
||||
|
|
Loading…
Reference in a new issue