diff --git a/cd/base/deployment.yaml b/cd/base/deployment.yaml index 7d16db78..9038e566 100644 --- a/cd/base/deployment.yaml +++ b/cd/base/deployment.yaml @@ -20,6 +20,9 @@ spec: containers: - image: otterscan name: otterscan + env: + - name: ERIGON_URL + value: not-set ports: - containerPort: 80 resources: diff --git a/cd/overlays/dev/certificate.yaml b/cd/overlays/dev/certificate.yaml deleted file mode 100644 index f2c5cae9..00000000 --- a/cd/overlays/dev/certificate.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: networking.gke.io/v1 -kind: ManagedCertificate -metadata: - name: developer-portal -spec: - domains: - - developer-portal.zildev.dev diff --git a/cd/overlays/dev/kustomization.yaml b/cd/overlays/dev/kustomization.yaml deleted file mode 100644 index c6cd3e19..00000000 --- a/cd/overlays/dev/kustomization.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: - - ../../base - - certificate.yaml - -patches: - - target: - kind: Deployment - name: developer-portal - patch: |- - - op: replace - path: "/spec/template/spec/containers/0/image" - value: asia-docker.pkg.dev/prj-d-dev-apps-n3p4o97j/zilliqa/developer-portal:latest - - target: - kind: Ingress - name: developer-portal - patch: |- - - op: replace - path: "/spec/rules/0/host" - value: developer-portal.zildev.dev - - op: replace - path: "/spec/rules/1/host" - value: dev-dev.zilliqa.com - - op: replace - path: /metadata/annotations - value: - kubernetes.io/ingress.class: gce - kubernetes.io/ingress.global-static-ip-name: developer-portal-zildev-dev - networking.gke.io/managed-certificates: developer-portal - -namespace: developer-portal-dev diff --git a/cd/overlays/production/certificate.yaml b/cd/overlays/production/certificate.yaml deleted file mode 100644 index 09c99882..00000000 --- a/cd/overlays/production/certificate.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: networking.gke.io/v1 -kind: ManagedCertificate -metadata: - name: developer-portal -spec: - domains: - - dev.zilliqa.com diff --git a/cd/overlays/production/kustomization.yaml b/cd/overlays/production/kustomization.yaml deleted file mode 100644 index 997d4970..00000000 --- a/cd/overlays/production/kustomization.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: - - ../../base - - certificate.yaml - -patches: - - target: - kind: Ingress - name: developer-portal - patch: |- - - op: replace - path: "/spec/rules/0/host" - value: dev.zilliqa.com - - op: remove - path: "/spec/rules/1" - - op: replace - path: /metadata/annotations - value: - kubernetes.io/ingress.class: gce - kubernetes.io/ingress.global-static-ip-name: dev-zilliqa-com - networking.gke.io/managed-certificates: developer-portal - networking.gke.io/v1beta1.FrontendConfig: developer-portal - -namespace: developer-portal-prd diff --git a/cd/overlays/staging/kustomization.yaml b/cd/overlays/staging/kustomization.yaml index a5bbf0c2..b21f0002 100644 --- a/cd/overlays/staging/kustomization.yaml +++ b/cd/overlays/staging/kustomization.yaml @@ -13,14 +13,18 @@ patches: - op: replace path: "/spec/rules/0/host" value: otterscan.zilstg.dev - - op: replace - path: "/spec/rules/1/host" - value: otterscan.zilliqa.com - 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 + - target: + kind: Deployment + name: otterscan + patch: |- + - op: replace + path: "/spec/template/spec/containers/0/env/0/value" + value: "https://api.zq2-prototestnet.zilliqa.com" namespace: otterscan-stg