Fix Rancher access: add kubectl port-forward + tailscale serve setup
Some checks failed
Deploy Cluster / Ansible (push) Has been cancelled
Deploy Cluster / Terraform (push) Has been cancelled

This commit is contained in:
2026-03-24 20:01:57 +00:00
parent 47b384a337
commit 60ceac4624
7 changed files with 35 additions and 60 deletions

View File

@@ -1,26 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rancher
namespace: cattle-system
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: rancher
traefik.ingress.kubernetes.io/router.tls: "true"
cert-manager.io/cluster-issuer: "selfsigned-cluster-issuer"
spec:
ingressClassName: traefik
rules:
- host: k8s-cluster-cp-1.silverside-gopher.ts.net
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: rancher
port:
number: 80
tls:
- hosts:
- k8s-cluster-cp-1.silverside-gopher.ts.net
secretName: rancher-tls

View File

@@ -4,5 +4,5 @@ resources:
- namespace.yaml
- helmrepository-rancher.yaml
- helmrelease-rancher.yaml
- ingress-rancher.yaml
- service-rancher-tailscale.yaml
- rancher-bootstrap-password-externalsecret.yaml

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: rancher-tailscale
namespace: cattle-system
annotations:
tailscale.com/hostname: k8s-cluster-cp-1-rancher
tailscale.com/proxy-class: infra-stable
spec:
type: LoadBalancer
loadBalancerClass: tailscale
selector:
app: rancher
ports:
- name: http
port: 80
protocol: TCP
targetPort: 80