Skip to content

Commit

Permalink
Add chart debug as nginx header
Browse files Browse the repository at this point in the history
  • Loading branch information
nhh committed Sep 27, 2024
1 parent 9f90d55 commit 0a94891
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion whoami/components/ingress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default (props: MyIngressProps): k8x.Ingress => ({
},
metadata: {
name: "whoami-ingress",
annotations: { "kubernetes.io/ingress.class": "nginx", "nginx.ingress.kubernetes.io/configuration-snippet": `more_set_headers "X-Forwarded-Host-Test: US";` }
annotations: {
"kubernetes.io/ingress.class": "nginx",
"nginx.ingress.kubernetes.io/configuration-snippet": `add_header X-server-header "${JSON.stringify($chart)}";`
}
},
});

0 comments on commit 0a94891

Please sign in to comment.