Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions cd/base/healthcheckpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
metadata:
name: otterscan
namespace: otterscan
labels:
app.kubernetes.io/name: otterscan
spec:
default:
checkIntervalSec: 10
timeoutSec: 5
healthyThreshold: 1
unhealthyThreshold: 3
config:
type: HTTP
httpHealthCheck:
portSpecification: USE_FIXED_PORT
requestPath: /health
port: 80
targetRef:
group: ""
kind: Service
name: otterscan
21 changes: 0 additions & 21 deletions cd/base/ingress.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions cd/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment.yaml
- healthcheckpolicy.yaml
- namespace.yaml
- svc.yaml
- ingress.yaml
11 changes: 0 additions & 11 deletions cd/overlays/development/backend-config.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions cd/overlays/development/certificate.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions cd/overlays/development/frontend-config.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions cd/overlays/development/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: otterscan
labels:
app.kubernetes.io/name: otterscan
spec:
parentRefs:
- name: gke-gateway
namespace: gke-gateway-prd
sectionName: https
hostnames:
- otterscan.zilstg.dev
rules:
- backendRefs:
- name: otterscan
port: 80
28 changes: 1 addition & 27 deletions cd/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,9 @@ namespace: otterscan-dev
resources:
- ../../base
- configmap.yaml
- certificate.yaml
- backend-config.yaml
- frontend-config.yaml
- httproute.yaml

patches:
- target:
kind: Ingress
name: otterscan
patch: |-
- op: replace
path: "/spec/rules/0/host"
value: otterscan.zilstg.dev
- op: replace
path: /metadata/annotations
value:
kubernetes.io/ingress.class: gce
kubernetes.io/ingress.global-static-ip-name: otterscan-zilstg-dev
networking.gke.io/managed-certificates: otterscan
networking.gke.io/v1beta1.FrontendConfig: otterscan

- target:
kind: Service
name: otterscan
patch: |-
- op: add
path: /metadata/annotations
value:
beta.cloud.google.com/backend-config: '{"default": "otterscan"}'

- target:
kind: Deployment
name: otterscan
Expand Down
Loading