Skip to content

Commit

Permalink
[nginx] fixed improper annotation routing
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Sep 9, 2023
1 parent 56cd7ee commit f87af74
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/networking/ingress-nginx/deployment.yaml
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ spec:
selector:
matchLabels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/component: controller
replicas: 1
strategy:
9 changes: 7 additions & 2 deletions apps/networking/ingress-nginx/svc.yaml
Original file line number Diff line number Diff line change
@@ -6,9 +6,12 @@ metadata:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/component: controller
annotations:
tailscale.com/hostname: "nginx-controller"
name: ingress-nginx-controller
spec:
type: LoadBalancer
loadBalancerClass: tailscale
ipFamilyPolicy: SingleStack
ipFamilies:
- IPv4
@@ -25,6 +28,7 @@ spec:
appProtocol: https
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/component: controller
---
apiVersion: v1
@@ -33,7 +37,7 @@ metadata:
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/component: controller
app.kubernetes.io/component: admission-webhook
name: ingress-nginx-controller-admission
spec:
type: ClusterIP
@@ -44,4 +48,5 @@ spec:
appProtocol: https
selector:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/component: controller
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/component: admission-webhook

0 comments on commit f87af74

Please sign in to comment.