Skip to content

Commit

Permalink
migrate k8s ingress schema to v1 (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpcone authored Apr 27, 2022
1 parent 05630db commit 59a35a5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 15 deletions.
9 changes: 6 additions & 3 deletions deployment/armada/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.ingress.nameOverride | default (include "armada.name" .) }}
Expand All @@ -25,9 +25,12 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: {{ include "armada.name" $root }}
servicePort: {{ $root.Values.applicationConfig.grpcPort }}
service:
name: {{ include "armada.name" $root }}
port:
number: {{ $root.Values.applicationConfig.grpcPort }}
{{ end }}
tls:
- hosts:
Expand Down
9 changes: 6 additions & 3 deletions deployment/armada/templates/ingressrest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.ingress.nameOverride | default (include "armada.name" .) }}-rest
Expand All @@ -25,9 +25,12 @@ spec:
http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
serviceName: {{ include "armada.name" $root }}
servicePort: {{ $root.Values.applicationConfig.httpPort }}
service:
name: {{ include "armada.name" $root }}
port:
number: {{ $root.Values.applicationConfig.httpPort }}
{{ end }}
tls:
- hosts:
Expand Down
9 changes: 6 additions & 3 deletions deployment/binoculars/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "binoculars.name" . }}
Expand All @@ -25,9 +25,12 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: {{ include "binoculars.name" $root }}
servicePort: {{ $root.Values.applicationConfig.grpcPort }}
service:
name: {{ include "binoculars.name" $root }}
port:
number: {{ $root.Values.applicationConfig.grpcPort }}
{{ end }}
tls:
- hosts:
Expand Down
9 changes: 6 additions & 3 deletions deployment/binoculars/templates/ingressrest.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "binoculars.name" . }}-rest
Expand All @@ -25,9 +25,12 @@ spec:
http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
serviceName: {{ include "binoculars.name" $root }}
servicePort: {{ $root.Values.applicationConfig.httpPort }}
service:
name: {{ include "binoculars.name" $root }}
port:
number: {{ $root.Values.applicationConfig.httpPort }}
{{ end }}
tls:
- hosts:
Expand Down
9 changes: 6 additions & 3 deletions deployment/lookout/templates/ingressweb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "lookout.name" . }}-web
Expand All @@ -24,9 +24,12 @@ spec:
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
serviceName: {{ include "lookout.name" $root }}
servicePort: {{ $root.Values.applicationConfig.httpPort }}
service:
name: {{ include "lookout.name" $root }}
port:
number: {{ $root.Values.applicationConfig.httpPort }}
{{ end }}
tls:
- hosts:
Expand Down

0 comments on commit 59a35a5

Please sign in to comment.