Skip to content

Commit

Permalink
feat: DEVOPS-1047 zillion migration to gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlops committed Nov 21, 2023
1 parent 58750fd commit f15543b
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
46 changes: 46 additions & 0 deletions products/zillion/cd/base/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: zillion-config
data:
config.js: |
window['config'] = {
networks_config: {
testnet: {
proxy: "0x351a37e2841a45c7f2de18ee45f968e106416273",
impl: "0xa2e4657de8108dd3730eb51f05a1d486d77be2df",
blockchain: "https://dev-api.zilliqa.com",
node_status: "https://testnet-viewer.zilliqa.com",
api_list: [
"https://dev-api.zilliqa.com",
]
},
mainnet: {
proxy: "",
impl: "",
blockchain: "https://api.zilliqa.com",
node_status: "https://staking-viewer.zilliqa.com",
api_list : [
"https://api.zilliqa.com",
"https://ssn.zillacracy.com/api",
"https://ssn-zilliqa.cex.io/api",
"https://ssn.zillet.io",
"https://zil-staking.ezil.me/api",
"https://staking-zil.kucoin.com/api",
]
},
isolated_server: {
proxy: "0x0578B8e9D9c2493D4a2E98f364c7ed311F7a0d71",
impl: "",
blockchain: "https://zilliqa-isolated-server.zilliqa.com",
node_status: "",
api_list : [
"https://zilliqa-isolated-server.zilliqa.com"
]
}
},
blockchain_explorer_config: "viewblock",
refresh_rate_config: 10000,
api_max_retry_attempt: 10,
environment_config: "stage"
}
8 changes: 8 additions & 0 deletions products/zillion/cd/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ spec:
name: zillion
ports:
- containerPort: 80
volumeMounts:
- mountPath: /usr/share/nginx/html/config.js
name: zillion-config
subPath: config.js
volumes:
- name: zillion
configMap:
name: zillion
1 change: 1 addition & 0 deletions products/zillion/cd/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- configmap.yaml
- namespace.yaml
- deployment.yaml
- svc.yaml
Expand Down
48 changes: 48 additions & 0 deletions products/zillion/cd/overlays/production/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,53 @@ patches:
kubernetes.io/ingress.global-static-ip-name: stake-zilliqa-com
networking.gke.io/managed-certificates: zillion
networking.gke.io/v1beta1.FrontendConfig: zillion
- target:
kind: ConfigMap
name: zillion-config
patch: |-
- op: replace
path: "/data/config.js"
value: |
window['config'] = {
networks_config: {
testnet: {
proxy: "",
impl: "",
blockchain: "https://dev-api.zilliqa.com",
node_status: "https://testnet-viewer.zilliqa.com",
api_list: [
"https://bumblebee-api.zilliqa.network",
"https://dev-api.zilliqa.com",
]
},
mainnet: {
proxy: "0x62A9d5D611CDCaE8D78005F31635898330e06B93",
impl: "0xa7C67D49C82c7dc1B73D231640B2e4d0661D37c1",
blockchain: "https://api.zilliqa.com",
node_status: "https://staking-viewer.zilliqa.com",
api_list : [
"https://api.zilliqa.com",
"https://ssn-zilliqa.cex.io/api",
"https://ssn.ignitedao.io/api",
"https://ssn.zillet.io",
"https://zil-staking.ezil.me/api",
"https://staking-zil.kucoin.com/api",
]
},
isolated_server: {
proxy: "0x0578B8e9D9c2493D4a2E98f364c7ed311F7a0d71",
impl: "",
blockchain: "https://zilliqa-isolated-server.zilliqa.com",
node_status: "",
api_list : [
"https://zilliqa-isolated-server.zilliqa.com"
]
}
},
blockchain_explorer_config: "viewblock",
refresh_rate_config: 300000,
api_max_retry_attempt: 10,
environment_config: "prod"
}
namespace: zillion-prd

0 comments on commit f15543b

Please sign in to comment.