Fix Rancher access: add Tailscale service for Traefik with port 9442, fix deployment order
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
apiVersion: helm.cattle.io/v1
|
||||
kind: HelmChartConfig
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: kube-system
|
||||
spec:
|
||||
valuesContent: |-
|
||||
additionalArguments:
|
||||
- "--entryPoints.flux.address=:9001/tcp"
|
||||
@@ -13,3 +13,6 @@ spec:
|
||||
wait: true
|
||||
timeout: 5m
|
||||
suspend: false
|
||||
dependsOn:
|
||||
- name: addon-tailscale-operator
|
||||
- name: addon-tailscale-proxyclass
|
||||
|
||||
@@ -3,11 +3,11 @@ kind: Kustomization
|
||||
resources:
|
||||
- kustomization-ccm.yaml
|
||||
- kustomization-csi.yaml
|
||||
- kustomization-traefik-config.yaml
|
||||
- kustomization-external-secrets.yaml
|
||||
- kustomization-flux-ui.yaml
|
||||
- kustomization-tailscale-operator.yaml
|
||||
- kustomization-tailscale-proxyclass.yaml
|
||||
- kustomization-traefik-config.yaml
|
||||
- kustomization-flux-ui.yaml
|
||||
- kustomization-observability.yaml
|
||||
- kustomization-observability-content.yaml
|
||||
- kustomization-rancher.yaml
|
||||
|
||||
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helmchartconfig-traefik.yaml
|
||||
- service-traefik-tailscale.yaml
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: traefik-tailscale
|
||||
namespace: kube-system
|
||||
annotations:
|
||||
tailscale.com/hostname: k8s-cluster-cp-1
|
||||
tailscale.com/proxy-class: infra-stable
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
loadBalancerClass: tailscale
|
||||
selector:
|
||||
app.kubernetes.io/instance: traefik-kube-system
|
||||
app.kubernetes.io/name: traefik
|
||||
ports:
|
||||
- name: web
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: web
|
||||
- name: websecure
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: websecure
|
||||
- name: flux
|
||||
port: 9001
|
||||
protocol: TCP
|
||||
targetPort: 9001
|
||||
- name: rancher
|
||||
port: 9442
|
||||
protocol: TCP
|
||||
targetPort: 9442
|
||||
Reference in New Issue
Block a user