-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVOPS-1128: stg and xcad isolated server envs (#305)
* feat: DEVOPS-1128 stg and xcad isolated server envs * feat: DEVOPS-1128 stg and xcad isolated server envs * feat: DEVOPS-1128 stg and xcad isolated server envs
- Loading branch information
Showing
15 changed files
with
210 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ resources: | |
- deployment.yaml | ||
- svc.yaml | ||
- ingress.yaml | ||
|
||
namespace: zilliqa-isolated-server |
12 changes: 12 additions & 0 deletions
12
products/zilliqa-isolated-server/cd/overlays/staging/app-secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
annotations: | ||
zilliqa.com/autofill: prj-d-staging | ||
type: Opaque | ||
data: | ||
UUID: "zilliqa-isolated-server/UUID" |
12 changes: 12 additions & 0 deletions
12
products/zilliqa-isolated-server/cd/overlays/staging/backend-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: cloud.google.com/v1 | ||
kind: BackendConfig | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
timeoutSec: 30 | ||
healthCheck: | ||
requestPath: / | ||
port: 80 |
9 changes: 9 additions & 0 deletions
9
products/zilliqa-isolated-server/cd/overlays/staging/certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: networking.gke.io/v1 | ||
kind: ManagedCertificate | ||
metadata: | ||
name: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
domains: | ||
- stg-zilliqa-isolated-server.zilliqa.com |
10 changes: 10 additions & 0 deletions
10
products/zilliqa-isolated-server/cd/overlays/staging/configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
data: | ||
AWS_INFRA_MODE: "false" | ||
VALIDATOR_MODE: "false" |
11 changes: 11 additions & 0 deletions
11
products/zilliqa-isolated-server/cd/overlays/staging/frontend-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: networking.gke.io/v1beta1 | ||
kind: FrontendConfig | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
redirectToHttps: | ||
enabled: true | ||
responseCodeName: RESPONSE_CODE |
36 changes: 36 additions & 0 deletions
36
products/zilliqa-isolated-server/cd/overlays/staging/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: zilliqa-isolated-server-stg | ||
|
||
resources: | ||
- ../../base | ||
- configmap.yaml | ||
- app-secret.yaml | ||
- certificate.yaml | ||
- backend-config.yaml | ||
- frontend-config.yaml | ||
|
||
patches: | ||
- target: | ||
kind: Ingress | ||
name: zilliqa-isolated-server | ||
patch: |- | ||
- op: replace | ||
path: "/spec/rules/0/host" | ||
value: stg-zilliqa-isolated-server.zilliqa.com | ||
- op: replace | ||
path: /metadata/annotations | ||
value: | ||
kubernetes.io/ingress.class: gce | ||
kubernetes.io/ingress.global-static-ip-name: stg-zilliqa-isolated-server-zilliqa-com | ||
networking.gke.io/managed-certificates: zilliqa-isolated-server | ||
networking.gke.io/v1beta1.FrontendConfig: zilliqa-isolated-server | ||
- target: | ||
kind: Service | ||
name: zilliqa-isolated-server | ||
patch: |- | ||
- op: add | ||
path: /metadata/annotations | ||
value: | ||
beta.cloud.google.com/backend-config: '{"default": "zilliqa-isolated-server"}' |
12 changes: 12 additions & 0 deletions
12
products/zilliqa-isolated-server/cd/overlays/xcad-production/backend-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: cloud.google.com/v1 | ||
kind: BackendConfig | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
timeoutSec: 30 | ||
healthCheck: | ||
requestPath: / | ||
port: 80 |
9 changes: 9 additions & 0 deletions
9
products/zilliqa-isolated-server/cd/overlays/xcad-production/certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: networking.gke.io/v1 | ||
kind: ManagedCertificate | ||
metadata: | ||
name: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
domains: | ||
- xcad-isolated-server.zilliqa.com |
42 changes: 42 additions & 0 deletions
42
products/zilliqa-isolated-server/cd/overlays/xcad-production/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
restartPolicy: Always | ||
terminationGracePeriodSeconds: 30 | ||
volumes: | ||
- emptyDir: {} | ||
name: persistence-volume-ephemeral | ||
containers: | ||
- image: nginx | ||
name: nginx | ||
ports: | ||
- containerPort: 80 | ||
- image: zilliqa-isolated-server | ||
name: zilliqa-isolated-server | ||
terminationMessagePath: /dev/termination-log | ||
terminationMessagePolicy: File | ||
volumeMounts: | ||
- mountPath: /zilliqa/persistence | ||
name: persistence-volume-ephemeral | ||
ports: | ||
- containerPort: 5555 | ||
env: | ||
- name: MANUAL_MODE | ||
value: "true" |
11 changes: 11 additions & 0 deletions
11
products/zilliqa-isolated-server/cd/overlays/xcad-production/frontend-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: networking.gke.io/v1beta1 | ||
kind: FrontendConfig | ||
metadata: | ||
name: zilliqa-isolated-server | ||
namespace: zilliqa-isolated-server | ||
labels: | ||
app.kubernetes.io/name: zilliqa-isolated-server | ||
spec: | ||
redirectToHttps: | ||
enabled: true | ||
responseCodeName: RESPONSE_CODE |
37 changes: 37 additions & 0 deletions
37
products/zilliqa-isolated-server/cd/overlays/xcad-production/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: xcad-isolated-server-prd | ||
|
||
resources: | ||
- ../../base | ||
- certificate.yaml | ||
- backend-config.yaml | ||
- frontend-config.yaml | ||
|
||
patches: | ||
- target: | ||
kind: Ingress | ||
name: zilliqa-isolated-server | ||
patch: |- | ||
- op: replace | ||
path: "/spec/rules/0/host" | ||
value: xcad-isolated-server.zilliqa.com | ||
- op: replace | ||
path: /metadata/annotations | ||
value: | ||
kubernetes.io/ingress.class: gce | ||
kubernetes.io/ingress.global-static-ip-name: xcad-isolated-server-zilliqa-com | ||
networking.gke.io/managed-certificates: zilliqa-isolated-server | ||
networking.gke.io/v1beta1.FrontendConfig: zilliqa-isolated-server | ||
- target: | ||
kind: Service | ||
name: zilliqa-isolated-server | ||
patch: |- | ||
- op: add | ||
path: /metadata/annotations | ||
value: | ||
beta.cloud.google.com/backend-config: '{"default": "zilliqa-isolated-server"}' | ||
patchesStrategicMerge: | ||
- deployment.yaml |