Skip to content

Commit 5441a4a

Browse files
committed
add ingres
1 parent 8fb998a commit 5441a4a

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

k8s.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,36 @@ spec:
6363
targetPort: 8080
6464
protocol: TCP
6565
selector:
66-
app: uploads-app
66+
app: uploads-app
67+
---
68+
apiVersion: networking.k8s.io/v1
69+
kind: Ingress
70+
metadata:
71+
name: uploads-ingress
72+
annotations:
73+
kubernetes.io/ingress.class: "gce"
74+
cloud.google.com/backend-config: '{"default": "uploads-backendconfig"}'
75+
spec:
76+
rules:
77+
- host: uploads.qdentity.io
78+
http:
79+
paths:
80+
- path: /
81+
pathType: Prefix
82+
backend:
83+
service:
84+
name: uploads-service
85+
port:
86+
number: 80
87+
---
88+
apiVersion: cloud.google.com/v1
89+
kind: BackendConfig
90+
metadata:
91+
name: uploads-backendconfig
92+
spec:
93+
timeoutSec: 86400
94+
connectionDraining:
95+
drainingTimeoutSec: 300
96+
customRequestHeaders:
97+
headers:
98+
- "X-Client-Proto:https"

0 commit comments

Comments
 (0)