Skip to content

Commit 7610c06

Browse files
authored
feat: implement production templates (#64)
1 parent bf5fd4f commit 7610c06

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: cloud.google.com/v1
2+
kind: BackendConfig
3+
metadata:
4+
name: neo-savant-2
5+
namespace: neo-savant-2
6+
labels:
7+
app.kubernetes.io/name: neo-savant-2
8+
spec:
9+
timeoutSec: 120
10+
healthCheck:
11+
requestPath: /
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: networking.gke.io/v1
2+
kind: ManagedCertificate
3+
metadata:
4+
name: neo-savant-2
5+
namespace: neo-savant-2
6+
labels:
7+
app.kubernetes.io/name: neo-savant-2
8+
spec:
9+
domains:
10+
- ide.zilliqa.com
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: networking.gke.io/v1beta1
2+
kind: FrontendConfig
3+
metadata:
4+
name: neo-savant-2
5+
namespace: neo-savant-2
6+
labels:
7+
app.kubernetes.io/name: neo-savant-2
8+
spec:
9+
redirectToHttps:
10+
enabled: true
11+
responseCodeName: RESPONSE_CODE
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
namespace: neo-savant-2-prd
5+
6+
resources:
7+
- ../../base
8+
- certificate.yaml
9+
- backend-config.yaml
10+
- frontend-config.yaml
11+
12+
patches:
13+
- target:
14+
kind: Ingress
15+
name: neo-savant-2
16+
patch: |-
17+
- op: replace
18+
path: "/spec/rules/0/host"
19+
value: ide.zilliqa.com
20+
- op: replace
21+
path: /metadata/annotations
22+
value:
23+
kubernetes.io/ingress.class: gce
24+
kubernetes.io/ingress.global-static-ip-name: ide-zilliqa-com
25+
networking.gke.io/managed-certificates: neo-savant-2
26+
networking.gke.io/v1beta1.FrontendConfig: neo-savant-2
27+
- target:
28+
kind: Service
29+
name: neo-savant-2
30+
patch: |-
31+
- op: add
32+
path: /metadata/annotations
33+
value:
34+
beta.cloud.google.com/backend-config: '{"default": "neo-savant-2"}'

0 commit comments

Comments
 (0)