apiVersion: v1 kind: ConfigMap metadata: name: host-mappings namespace: auth-proxy labels: app: proxy data: mapping.json: | { "tekton-el.auth-proxy.svc": "tekton-el.cluster.local", "vmcluster.auth-proxy.svc": "vmcluster.cluster.local", "loki.auth-proxy.svc": "loki-write.cluster.local", "loki.auth-proxy.svc:80": "loki-write.cluster.local", "loki-distributed.auth-proxy.svc": "loki-loki.cluster.local", "loki-distributed.auth-proxy.svc:80": "loki-loki.cluster.local", "hello-world.cluster.fun": "hello-world.cluster.fun" } --- apiVersion: apps/v1 kind: Deployment metadata: name: internal-proxy namespace: auth-proxy labels: app: internal-proxy annotations: configmap.reloader.stakater.com/reload: "host-mappings" secret.reloader.stakater.com/reload: "tailscale-auth" spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: internal-proxy template: metadata: labels: app: internal-proxy spec: serviceAccountName: default dnsPolicy: ClusterFirst dnsConfig: nameservers: - 100.100.100.100 containers: - name: proxy image: rg.fr-par.scw.cloud/averagemarcus/proxy:latest imagePullPolicy: Always env: - name: PROXY_DESTINATION value: talos.averagemarcus.github.beta.tailscale.net - name: PORT value: "8080" - name: TS_AUTH_KEY valueFrom: secretKeyRef: name: tailscale-auth key: password - name: TS_HOSTNAME value: auth-proxy-internal-proxy ports: - containerPort: 8080 protocol: TCP volumeMounts: - name: host-mappings mountPath: /config/ volumes: - name: host-mappings configMap: name: host-mappings --- apiVersion: v1 kind: Service metadata: name: tailscale-proxy namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: tekton-el namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: loki namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: loki-distributed namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: prometheus namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: vmcluster namespace: auth-proxy labels: app: internal-proxy spec: ports: - name: http port: 80 protocol: TCP targetPort: 8080 selector: app: internal-proxy type: ClusterIP ---