From 86cddd7678cc3634b01ea550f5b09eef7e1fac3f Mon Sep 17 00:00:00 2001 From: systemblox <40427708+systemblox@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:42:41 +0300 Subject: [PATCH] Removed Prater ssv nodes (#1362) Co-authored-by: stoyan.peev --- .gitlab-ci.yml | 17 -- .../prater/boot-node-prater-deployment.yml | 127 ----------- .../prater/scripts/deploy-boot-nodes.sh | 128 ----------- .../prater/scripts/deploy-cluster-1--4.sh | 131 ----------- .../prater/scripts/deploy-exporters.sh | 118 ---------- .k8/production/prater/ssv-exporter-1.yml | 215 ------------------ .k8/production/prater/ssv-exporter-2.yml | 182 --------------- .../prater/ssv-node-prater-1-deployment.yml | 132 ----------- .../prater/ssv-node-prater-2-deployment.yml | 132 ----------- .../prater/ssv-node-prater-3-deployment.yml | 132 ----------- .../prater/ssv-node-prater-4-deployment.yml | 132 ----------- 11 files changed, 1446 deletions(-) delete mode 100644 .k8/production/prater/boot-node-prater-deployment.yml delete mode 100755 .k8/production/prater/scripts/deploy-boot-nodes.sh delete mode 100755 .k8/production/prater/scripts/deploy-cluster-1--4.sh delete mode 100755 .k8/production/prater/scripts/deploy-exporters.sh delete mode 100644 .k8/production/prater/ssv-exporter-1.yml delete mode 100644 .k8/production/prater/ssv-exporter-2.yml delete mode 100644 .k8/production/prater/ssv-node-prater-1-deployment.yml delete mode 100644 .k8/production/prater/ssv-node-prater-2-deployment.yml delete mode 100644 .k8/production/prater/ssv-node-prater-3-deployment.yml delete mode 100644 .k8/production/prater/ssv-node-prater-4-deployment.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e52268d32..cac9f19326 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -147,23 +147,11 @@ Deploy nodes to prod: # █▓▒░ Keep commented unless you're testing the bootnode ░▒▓█ #- .k8/production/holesky/scripts/deploy-boot-nodes.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $PROD_HEALTH_CHECK_IMAGE $SSV_NODES_CPU_LIMIT_V3 $SSV_NODES_MEM_LIMIT_V3 # - # +---------------------------+ - # | 🟠 Deploy SSV Prater nodes | - # +---------------------------+ - - .k8/production/prater/scripts/deploy-cluster-1--4.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $PROD_HEALTH_CHECK_IMAGE $SSV_NODES_CPU_LIMIT_V3 $SSV_NODES_MEM_LIMIT_V3 - # # +----------------------------+ # | 🔴 Deploy SSV Mainnet nodes | # +----------------------------+ # - .k8/production/mainnet/scripts/deploy-cluster-1-4.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $PROD_HEALTH_CHECK_IMAGE $SSV_NODES_CPU_LIMIT_V3 $SSV_NODES_MEM_LIMIT_V3 # - # - # +-----------------------------+ - # │ 🟠 Deploy Prater Bootnode | - # +-----------------------------+ - # █▓▒░ Keep commented unless you're testing the bootnode ░▒▓█ - # - .k8/production/prater/scripts/deploy-boot-nodes.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $PROD_HEALTH_CHECK_IMAGE $SSV_NODES_CPU_LIMIT_V3 $SSV_NODES_MEM_LIMIT_V3 - # # +------------------------------+ # │ 🔴 Deploy Mainnet Bootnode | # +------------------------------+ @@ -196,11 +184,6 @@ Deploy exporter to prod: - .k8/production/holesky/scripts/deploy-exporters.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $SSV_EXPORTER_CPU_LIMIT $SSV_EXPORTER_MEM_LIMIT # # +------------------------------+ - # | 🟠 Deploy Prater exporter | - # +------------------------------+ - - .k8/production/prater/scripts/deploy-exporters.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $SSV_EXPORTER_CPU_LIMIT $SSV_EXPORTER_MEM_LIMIT - # - # +------------------------------+ # │ 🔴 Deploy Mainnet exporter | # +------------------------------+ # - .k8/production/mainnet/scripts/deploy-exporters.sh $DOCKER_REPO_INFRA_PROD $CI_COMMIT_SHA ssv $APP_REPLICAS_INFRA_PROD blox-infra-prod kubernetes-admin@blox-infra-prod ssv.network $K8S_API_VERSION $SSV_EXPORTER_MAINNET_CPU_LIMIT $SSV_EXPORTER_MAINNET_MEM_LIMIT diff --git a/.k8/production/prater/boot-node-prater-deployment.yml b/.k8/production/prater/boot-node-prater-deployment.yml deleted file mode 100644 index 8b12e4ebe6..0000000000 --- a/.k8/production/prater/boot-node-prater-deployment.yml +++ /dev/null @@ -1,127 +0,0 @@ ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: boot-node-prater - namespace: REPLACE_NAMESPACE -spec: - hosts: - - "boot-node-prater.REPLACE_DOMAIN_SUFFIX" - gateways: - - boot-node-prater - http: - - route: - - destination: - host: boot-node-prater-svc - port: - number: 5001 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: Gateway -metadata: - name: boot-node-prater - namespace: REPLACE_NAMESPACE -spec: - selector: - istio: ingressgateway - servers: - - port: - number: 80 - name: http - protocol: HTTP - hosts: - - "boot-node-prater.REPLACE_DOMAIN_SUFFIX" ---- -apiVersion: v1 -kind: Service -metadata: - name: boot-node-prater-svc - namespace: REPLACE_NAMESPACE - labels: - app: boot-node-prater -spec: - type: ClusterIP - ports: - - port: 4001 - protocol: UDP - targetPort: 4001 - name: port-4001 - - port: 5001 - protocol: TCP - targetPort: 5001 - name: port-5001 - selector: - app: boot-node-prater ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: boot-node-prater - name: boot-node-prater - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: boot-node-prater - template: - metadata: - labels: - app: boot-node-prater - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-boot-node - containers: - - name: boot-node-prater - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - command: ["make", "start-boot-node"] - ports: - - containerPort: 5001 - name: port-5001 - hostPort: 5001 - env: - - name: CONFIG_PATH - value: /config/config.example.yaml - - name: BOOT_NODE_PRIVATE_KEY - valueFrom: - secretKeyRef: - name: config-secrets - key: boot_node_prater_private_key - - name: BOOT_NODE_EXTERNAL_IP - valueFrom: - secretKeyRef: - name: config-secrets - key: boot_node_prater_external_ip - - name: TCP_PORT - value: "5001" - - name: UDP_PORT - value: "4001" - volumeMounts: - - mountPath: /data/bootnode - name: boot-node-prater - - mountPath: /data/config.yaml - name: boot-node-prater-cm - volumes: - - name: boot-node-prater - persistentVolumeClaim: - claimName: boot-node-prater - - configMap: - defaultMode: 420 - name: boot-node-prater-cm - name: boot-node-prater-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/scripts/deploy-boot-nodes.sh b/.k8/production/prater/scripts/deploy-boot-nodes.sh deleted file mode 100755 index bfae2bd59c..0000000000 --- a/.k8/production/prater/scripts/deploy-boot-nodes.sh +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/bash - -set -x - -if [[ -z $1 ]]; then - echo "Please provide DOCKERREPO" - exit 1 -fi - -if [[ -z $2 ]]; then - echo "Please provide IMAGETAG" - exit 1 -fi - -if [[ -z $3 ]]; then - echo "Please provide NAMESPACE" - exit 1 -fi - -if [[ -z $4 ]]; then - echo "Please provide number of replicas" - exit 1 -fi - -if [[ -z $5 ]]; then - echo "Please provide deployment type: blox-infra-stage|blox-infra-prod" - exit 1 -fi - -if [[ -z $6 ]]; then - echo "Please provide k8s context" - exit 1 -fi - -if [[ -z $7 ]]; then - echo "Pleae provide domain suffix" - exit 1 -fi - -if [[ -z ${8} ]]; then - echo "Please provide k8s app version" - exit 1 -fi - -if [[ -z $9 ]]; then - echo "Please provide health check image" - exit 1 -fi - -if [[ -z ${10} ]]; then - echo "Please provide nodes cpu limit" - exit 1 -fi - -if [[ -z ${11} ]]; then - echo "Please provide nodes mem limit" - exit 1 -fi - - -DOCKERREPO=$1 -IMAGETAG=$2 -NAMESPACE=$3 -REPLICAS=$4 -DEPL_TYPE=$5 -K8S_CONTEXT=$6 -DOMAIN_SUFFIX=$7 -K8S_API_VERSION=$8 -HEALTH_CHECK_IMAGE=$9 -NODES_CPU_LIMIT=${10} -NODES_MEM_LIMIT=${11} - - -echo $DOCKERREPO -echo $IMAGETAG -echo $NAMESPACE -echo $REPLICAS -echo $DEPL_TYPE -echo $K8S_CONTEXT -echo $DOMAIN_SUFFIX -echo $K8S_API_VERSION -echo $HEALTH_CHECK_IMAGE -echo $NODES_CPU_LIMIT -echo $NODES_MEM_LIMIT - -# create namespace if not exists -if ! kubectl --context=$K8S_CONTEXT get ns | grep -q $NAMESPACE; then - echo "$NAMESPACE created" - kubectl --context=$K8S_CONTEXT create namespace $NAMESPACE -fi - -#config -#if [[ -d .k8/configmaps/ ]]; then -#config - #for file in $(ls -A1 .k8/configmaps/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/configmaps/${file}" - #done -#fi - -#if [[ -d .k8/secrets/ ]]; then - #for file in $(ls -A1 .k8/secrets/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/secrets/${file}" - #done -#fi - -DIR=".k8/production/prater" -DEPLOY_FILES=( - "boot-node-prater-deployment.yml" -) - -if [[ -d $DIR ]]; then - for file in "${DEPLOY_FILES[@]}"; do - sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" \ - -e "s|REPLACE_DOCKER_REPO|${DOCKERREPO}|g" \ - -e "s|REPLACE_REPLICAS|${REPLICAS}|g" \ - -e "s|REPLACE_DOMAIN_SUFFIX|${DOMAIN_SUFFIX}|g" \ - -e "s|REPLACE_API_VERSION|${K8S_API_VERSION}|g" \ - -e "s|REPLACE_HEALTH_IMAGE|${HEALTH_CHECK_IMAGE}|g" \ - -e "s|REPLACE_NODES_CPU_LIMIT|${NODES_CPU_LIMIT}|g" \ - -e "s|REPLACE_NODES_MEM_LIMIT|${NODES_MEM_LIMIT}|g" \ - -e "s|REPLACE_IMAGETAG|${IMAGETAG}|g" "${DIR}/${file}" || exit 1 - done -fi - -#deploy -for file in "${DEPLOY_FILES[@]}"; do - kubectl --context=$K8S_CONTEXT apply -f "${DIR}/${file}" || exit 1 -done diff --git a/.k8/production/prater/scripts/deploy-cluster-1--4.sh b/.k8/production/prater/scripts/deploy-cluster-1--4.sh deleted file mode 100755 index cc784c5fe1..0000000000 --- a/.k8/production/prater/scripts/deploy-cluster-1--4.sh +++ /dev/null @@ -1,131 +0,0 @@ -#!/bin/bash - -set -x - -if [[ -z $1 ]]; then - echo "Please provide DOCKERREPO" - exit 1 -fi - -if [[ -z $2 ]]; then - echo "Please provide IMAGETAG" - exit 1 -fi - -if [[ -z $3 ]]; then - echo "Please provide NAMESPACE" - exit 1 -fi - -if [[ -z $4 ]]; then - echo "Please provide number of replicas" - exit 1 -fi - -if [[ -z $5 ]]; then - echo "Please provide deployment type: blox-infra-stage|blox-infra-prod" - exit 1 -fi - -if [[ -z $6 ]]; then - echo "Please provide k8s context" - exit 1 -fi - -if [[ -z $7 ]]; then - echo "Pleae provide domain suffix" - exit 1 -fi - -if [[ -z ${8} ]]; then - echo "Please provide k8s app version" - exit 1 -fi - -if [[ -z $9 ]]; then - echo "Please provide health check image" - exit 1 -fi - -if [[ -z ${10} ]]; then - echo "Please provide nodes cpu limit" - exit 1 -fi - -if [[ -z ${11} ]]; then - echo "Please provide nodes mem limit" - exit 1 -fi - - -DOCKERREPO=$1 -IMAGETAG=$2 -NAMESPACE=$3 -REPLICAS=$4 -DEPL_TYPE=$5 -K8S_CONTEXT=$6 -DOMAIN_SUFFIX=$7 -K8S_API_VERSION=$8 -HEALTH_CHECK_IMAGE=$9 -NODES_CPU_LIMIT=${10} -NODES_MEM_LIMIT=${11} - - -echo $DOCKERREPO -echo $IMAGETAG -echo $NAMESPACE -echo $REPLICAS -echo $DEPL_TYPE -echo $K8S_CONTEXT -echo $DOMAIN_SUFFIX -echo $K8S_API_VERSION -echo $HEALTH_CHECK_IMAGE -echo $NODES_CPU_LIMIT -echo $NODES_MEM_LIMIT - -# create namespace if not exists -if ! kubectl --context=$K8S_CONTEXT get ns | grep -q $NAMESPACE; then - echo "$NAMESPACE created" - kubectl --context=$K8S_CONTEXT create namespace $NAMESPACE -fi - -#config -#if [[ -d .k8/configmaps/ ]]; then -#config - #for file in $(ls -A1 .k8/configmaps/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/configmaps/${file}" - #done -#fi - -#if [[ -d .k8/secrets/ ]]; then - #for file in $(ls -A1 .k8/secrets/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/secrets/${file}" - #done -#fi - -DIR=".k8/production/prater" -DEPLOY_FILES=( - "ssv-node-prater-1-deployment.yml" - "ssv-node-prater-2-deployment.yml" - "ssv-node-prater-3-deployment.yml" - "ssv-node-prater-4-deployment.yml" -) - -if [[ -d $DIR ]]; then - for file in "${DEPLOY_FILES[@]}"; do - sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" \ - -e "s|REPLACE_DOCKER_REPO|${DOCKERREPO}|g" \ - -e "s|REPLACE_REPLICAS|${REPLICAS}|g" \ - -e "s|REPLACE_DOMAIN_SUFFIX|${DOMAIN_SUFFIX}|g" \ - -e "s|REPLACE_API_VERSION|${K8S_API_VERSION}|g" \ - -e "s|REPLACE_HEALTH_IMAGE|${HEALTH_CHECK_IMAGE}|g" \ - -e "s|REPLACE_NODES_CPU_LIMIT|${NODES_CPU_LIMIT}|g" \ - -e "s|REPLACE_NODES_MEM_LIMIT|${NODES_MEM_LIMIT}|g" \ - -e "s|REPLACE_IMAGETAG|${IMAGETAG}|g" "${DIR}/${file}" || exit 1 - done -fi - -#deploy -for file in "${DEPLOY_FILES[@]}"; do - kubectl --context=$K8S_CONTEXT apply -f "${DIR}/${file}" || exit 1 -done diff --git a/.k8/production/prater/scripts/deploy-exporters.sh b/.k8/production/prater/scripts/deploy-exporters.sh deleted file mode 100755 index 0fb0191ce7..0000000000 --- a/.k8/production/prater/scripts/deploy-exporters.sh +++ /dev/null @@ -1,118 +0,0 @@ -#!/bin/bash - -set -x - -if [[ -z $1 ]]; then - echo "Please provide DOCKERREPO" - exit 1 -fi - -if [[ -z $2 ]]; then - echo "Please provide IMAGETAG" - exit 1 -fi - -if [[ -z $3 ]]; then - echo "Please provide NAMESPACE" - exit 1 -fi - -if [[ -z $4 ]]; then - echo "Please provide number of replicas" - exit 1 -fi - -if [[ -z $5 ]]; then - echo "Please provide deployment type: blox-infra-stage|blox-infra-prod" - exit 1 -fi - -if [[ -z $6 ]]; then - echo "Please provide k8s context" - exit 1 -fi - -if [[ -z $7 ]]; then - echo "Pleae provide domain suffix" - exit 1 -fi - -if [[ -z ${8} ]]; then - echo "Please provide k8s app version" - exit 1 -fi - -if [[ -z ${9} ]]; then - echo "Please provide exporter cpu limit" - exit 1 -fi - -if [[ -z ${10} ]]; then - echo "Please provide exporter cpu limit" - exit 1 -fi - -DOCKERREPO=$1 -IMAGETAG=$2 -NAMESPACE=$3 -REPLICAS=$4 -DEPL_TYPE=$5 -K8S_CONTEXT=$6 -DOMAIN_SUFFIX=$7 -K8S_API_VERSION=$8 -EXPORTER_CPU_LIMIT=$9 -EXPORTER_MEM_LIMIT=${10} - -echo $DOCKERREPO -echo $IMAGETAG -echo $NAMESPACE -echo $REPLICAS -echo $DEPL_TYPE -echo $K8S_CONTEXT -echo $DOMAIN_SUFFIX -echo $K8S_API_VERSION -echo $EXPORTER_CPU_LIMIT -echo $EXPORTER_MEM_LIMIT - -# create namespace if not exists -if ! kubectl --context=$K8S_CONTEXT get ns | grep -q $NAMESPACE; then - echo "$NAMESPACE created" - kubectl --context=$K8S_CONTEXT create namespace $NAMESPACE -fi - -#config -#if [[ -d .k8/configmaps/ ]]; then -#config - #for file in $(ls -A1 .k8/configmaps/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/configmaps/${file}" - #done -#fi - -#if [[ -d .k8/secrets/ ]]; then - #for file in $(ls -A1 .k8/secrets/); do - #sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" ".k8/secrets/${file}" - #done -#fi - -DIR=".k8/production/prater" -DEPLOY_FILES=( - "ssv-exporter-1.yml" -) - -if [[ -d $DIR ]]; then - for file in "${DEPLOY_FILES[@]}"; do - sed -i -e "s|REPLACE_NAMESPACE|${NAMESPACE}|g" \ - -e "s|REPLACE_DOCKER_REPO|${DOCKERREPO}|g" \ - -e "s|REPLACE_REPLICAS|${REPLICAS}|g" \ - -e "s|REPLACE_DOMAIN_SUFFIX|${DOMAIN_SUFFIX}|g" \ - -e "s|REPLACE_API_VERSION|${K8S_API_VERSION}|g" \ - -e "s|REPLACE_EXPORTER_CPU_LIMIT|${EXPORTER_CPU_LIMIT}|g" \ - -e "s|REPLACE_EXPORTER_MEM_LIMIT|${EXPORTER_MEM_LIMIT}|g" \ - -e "s|REPLACE_IMAGETAG|${IMAGETAG}|g" "${DIR}/${file}" || exit 1 - done -fi - -#deploy -for file in "${DEPLOY_FILES[@]}"; do - kubectl --context=$K8S_CONTEXT apply -f "${DIR}/${file}" || exit 1 -done diff --git a/.k8/production/prater/ssv-exporter-1.yml b/.k8/production/prater/ssv-exporter-1.yml deleted file mode 100644 index e89e5f6d1e..0000000000 --- a/.k8/production/prater/ssv-exporter-1.yml +++ /dev/null @@ -1,215 +0,0 @@ ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: ssv-full-node-prater-1-api - namespace: REPLACE_NAMESPACE -spec: - hosts: - - "ssv-full-node-prater-1.REPLACE_DOMAIN_SUFFIX" - gateways: - - ssv-full-node-prater-1-api - http: - - route: - - destination: - host: ssv-full-node-prater-1 - port: - number: 16009 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: Gateway -metadata: - name: ssv-full-node-prater-1-api - namespace: REPLACE_NAMESPACE -spec: - selector: - istio: ingressgateway-int - servers: - - port: - number: 80 - name: http - protocol: HTTP - hosts: - - "ssv-full-node-prater-1.REPLACE_DOMAIN_SUFFIX" ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: ssv-full-node-prater-1 - namespace: REPLACE_NAMESPACE -spec: - hosts: - - "ws-ssv-full-node-prater-1.REPLACE_DOMAIN_SUFFIX" - gateways: - - ssv-full-node-prater-1 - http: - - route: - - destination: - host: ssv-full-node-prater-1 - port: - number: 14009 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: Gateway -metadata: - name: ssv-full-node-prater-1 - namespace: REPLACE_NAMESPACE -spec: - selector: - istio: ingressgateway-int - servers: - - port: - number: 80 - name: http - protocol: HTTP - hosts: - - "ws-ssv-full-node-prater-1.REPLACE_DOMAIN_SUFFIX" ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-full-node-prater-1 - namespace: REPLACE_NAMESPACE - labels: - app: ssv-full-node-prater-1 -spec: - type: ClusterIP - ports: - - port: 12009 - protocol: UDP - targetPort: 12009 - name: port-12009 - - port: 13009 - protocol: TCP - targetPort: 13009 - name: port-13009 - - port: 14009 - protocol: TCP - targetPort: 14009 - name: port-14009 - - port: 15009 - protocol: TCP - targetPort: 15009 - name: port-15009 - - port: 16009 - protocol: TCP - targetPort: 16009 - name: port-16009 - selector: - app: ssv-full-node-prater-1 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-full-node-prater-1 - name: ssv-full-node-prater-1 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-full-node-prater-1 - template: - metadata: - labels: - app: ssv-full-node-prater-1 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-full-node-prater-1 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_EXPORTER_CPU_LIMIT - memory: REPLACE_EXPORTER_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12009 - name: port-12009 - hostPort: 12009 - protocol: UDP - - containerPort: 13009 - name: port-13009 - hostPort: 13009 - - containerPort: 14009 - name: port-14009 - hostPort: 14009 - - containerPort: 15009 - name: port-15009 - hostPort: 15009 - - containerPort: 16009 - name: port-16009 - hostPort: 16009 - env: - - name: SHARE_CONFIG - value: "./data/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15009" - - name: SSV_API_PORT - value: "16009" - - name: ENABLE_PROFILE - value: "true" - - name: UDP_PORT - value: "12009" - - name: TCP_PORT - value: "13009" - - name: WS_API_PORT - value: "14009" - - name: FULLNODE - value: "true" - - name: EXPORTER - value: "true" - - name: MSG_WORKERS_COUNT - value: "1024" - - name: MSG_WORKER_BUFFER_SIZE - value: "2048" - - name: SUBNETS - value: "0xffffffffffffffffffffffffffffffff" - - name: P2P_MAX_PEERS - value: "300" - volumeMounts: - - mountPath: /data - name: ssv-full-node-prater-1 - - mountPath: /data/share.yaml - subPath: share.yaml - name: ssv-full-node-prater-1-cm - volumes: - - name: ssv-full-node-prater-1 - persistentVolumeClaim: - claimName: ssv-full-node-prater-1 - - name: ssv-full-node-prater-1-cm - configMap: - name: ssv-full-node-prater-1-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/ssv-exporter-2.yml b/.k8/production/prater/ssv-exporter-2.yml deleted file mode 100644 index 7e74b46fd6..0000000000 --- a/.k8/production/prater/ssv-exporter-2.yml +++ /dev/null @@ -1,182 +0,0 @@ ---- -apiVersion: networking.istio.io/v1alpha3 -kind: VirtualService -metadata: - name: ssv-full-node-prater-2 - namespace: REPLACE_NAMESPACE -spec: - hosts: - - "ws-ssv-full-node-prater-2.REPLACE_DOMAIN_SUFFIX" - gateways: - - ssv-full-node-prater-2 - http: - - route: - - destination: - host: ssv-full-node-prater-2 - port: - number: 14010 ---- -apiVersion: networking.istio.io/v1alpha3 -kind: Gateway -metadata: - name: ssv-full-node-prater-2 - namespace: REPLACE_NAMESPACE -spec: - selector: - istio: ingressgateway-int - servers: - - port: - number: 80 - name: http - protocol: HTTP - hosts: - - "ws-ssv-full-node-prater-2.REPLACE_DOMAIN_SUFFIX" ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-full-node-prater-2 - namespace: REPLACE_NAMESPACE - labels: - app: ssv-full-node-prater-2 -spec: - type: ClusterIP - ports: - - port: 12010 - protocol: UDP - targetPort: 12010 - name: port-12010 - - port: 13010 - protocol: TCP - targetPort: 13010 - name: port-13010 - - port: 14010 - protocol: TCP - targetPort: 14010 - name: port-14010 - - port: 15010 - protocol: TCP - targetPort: 15010 - name: port-15010 - - port: 16010 - protocol: TCP - targetPort: 16010 - name: port-16010 - selector: - app: ssv-full-node-prater-2 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-full-node-prater-2 - name: ssv-full-node-prater-2 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-full-node-prater-2 - template: - metadata: - labels: - app: ssv-full-node-prater-2 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-full-node-prater-2 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_EXPORTER_CPU_LIMIT - memory: REPLACE_EXPORTER_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12010 - name: port-12010 - hostPort: 12010 - protocol: UDP - - containerPort: 13010 - name: port-13010 - hostPort: 13010 - - containerPort: 14010 - name: port-14010 - hostPort: 14010 - - containerPort: 15010 - name: port-15010 - hostPort: 15010 - - containerPort: 16010 - name: port-16010 - hostPort: 16010 - env: - - name: SHARE_CONFIG - value: "./data/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15010" - - name: SSV_API_PORT - value: "16010" - - name: ENABLE_PROFILE - value: "true" - - name: UDP_PORT - value: "12010" - - name: TCP_PORT - value: "13010" - - name: WS_API_PORT - value: "14010" - - name: FULLNODE - value: "true" - - name: EXPORTER - value: "true" - - name: MSG_WORKERS_COUNT - value: "1024" - - name: MSG_WORKER_BUFFER_SIZE - value: "2048" - - name: SUBNETS - value: "0xffffffffffffffffffffffffffffffff" - - name: P2P_MAX_PEERS - value: "300" - volumeMounts: - - mountPath: /data - name: ssv-full-node-prater-2 - - mountPath: /data/share.yaml - subPath: share.yaml - name: ssv-full-node-prater-2-cm - volumes: - - name: ssv-full-node-prater-2 - persistentVolumeClaim: - claimName: ssv-full-node-prater-2 - - name: ssv-full-node-prater-2-cm - configMap: - name: ssv-full-node-prater-2-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/ssv-node-prater-1-deployment.yml b/.k8/production/prater/ssv-node-prater-1-deployment.yml deleted file mode 100644 index 73c26db625..0000000000 --- a/.k8/production/prater/ssv-node-prater-1-deployment.yml +++ /dev/null @@ -1,132 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-node-prater-1-svc - namespace: REPLACE_NAMESPACE - labels: - app: ssv-node-prater-1 -spec: - type: ClusterIP - ports: - - port: 12011 - protocol: UDP - targetPort: 12011 - name: port-12011 - - port: 13011 - protocol: TCP - targetPort: 13011 - name: port-13011 - - port: 15011 - protocol: TCP - targetPort: 15011 - name: port-15011 - - port: 16011 - protocol: TCP - targetPort: 16011 - name: port-16011 - selector: - app: ssv-node-prater-1 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-node-prater-1 - name: ssv-node-prater-1 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-node-prater-1 - template: - metadata: - labels: - app: ssv-node-prater-1 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-node-prater-1 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_NODES_CPU_LIMIT - memory: REPLACE_NODES_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12011 - name: port-12011 - hostPort: 12011 - protocol: UDP - - containerPort: 13011 - name: port-13011 - hostPort: 13011 - - containerPort: 15011 - name: port-15011 - hostPort: 15011 - - containerPort: 16011 - name: port-16011 - hostPort: 16011 - env: - - name: SHARE_CONFIG - value: "./data1/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: CONSENSUS_TYPE - value: "validation" - - name: HOST_DNS - value: "" - - name: HOST_ADDRESS - value: "" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15011" - - name: SSV_API_PORT - value: "16011" - - name: ENABLE_PROFILE - value: "true" - - name: BUILDER_PROPOSALS - value: "true" - volumeMounts: - - mountPath: /data - name: ssv-node-prater-1 - - mountPath: /data1/share.yaml - subPath: share.yaml - name: ssv-node-prater-1-cm - volumes: - - name: ssv-node-prater-1 - persistentVolumeClaim: - claimName: ssv-node-prater-1 - - name: ssv-node-prater-1-cm - configMap: - name: ssv-node-prater-1-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/ssv-node-prater-2-deployment.yml b/.k8/production/prater/ssv-node-prater-2-deployment.yml deleted file mode 100644 index 4cb17b317a..0000000000 --- a/.k8/production/prater/ssv-node-prater-2-deployment.yml +++ /dev/null @@ -1,132 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-node-prater-2-svc - namespace: REPLACE_NAMESPACE - labels: - app: ssv-node-prater-2 -spec: - type: ClusterIP - ports: - - port: 12012 - protocol: UDP - targetPort: 12012 - name: port-12012 - - port: 13012 - protocol: TCP - targetPort: 13012 - name: port-13012 - - port: 15012 - protocol: TCP - targetPort: 15012 - name: port-15012 - - port: 16012 - protocol: TCP - targetPort: 16012 - name: port-16012 - selector: - app: ssv-node-prater-2 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-node-prater-2 - name: ssv-node-prater-2 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-node-prater-2 - template: - metadata: - labels: - app: ssv-node-prater-2 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-node-prater-2 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_NODES_CPU_LIMIT - memory: REPLACE_NODES_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12012 - name: port-12012 - hostPort: 12012 - protocol: UDP - - containerPort: 13012 - name: port-13012 - hostPort: 13012 - - containerPort: 15012 - name: port-15012 - hostPort: 15012 - - containerPort: 16012 - name: port-16012 - hostPort: 16012 - env: - - name: SHARE_CONFIG - value: "./data1/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: CONSENSUS_TYPE - value: "validation" - - name: HOST_DNS - value: "" - - name: HOST_ADDRESS - value: "" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15012" - - name: SSV_API_PORT - value: "16012" - - name: ENABLE_PROFILE - value: "true" - - name: BUILDER_PROPOSALS - value: "true" - volumeMounts: - - mountPath: /data - name: ssv-node-prater-2 - - mountPath: /data1/share.yaml - subPath: share.yaml - name: ssv-node-prater-2-cm - volumes: - - name: ssv-node-prater-2 - persistentVolumeClaim: - claimName: ssv-node-prater-2 - - name: ssv-node-prater-2-cm - configMap: - name: ssv-node-prater-2-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/ssv-node-prater-3-deployment.yml b/.k8/production/prater/ssv-node-prater-3-deployment.yml deleted file mode 100644 index c14d51220f..0000000000 --- a/.k8/production/prater/ssv-node-prater-3-deployment.yml +++ /dev/null @@ -1,132 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-node-prater-3-svc - namespace: REPLACE_NAMESPACE - labels: - app: ssv-node-prater-3 -spec: - type: ClusterIP - ports: - - port: 12013 - protocol: UDP - targetPort: 12013 - name: port-12013 - - port: 13013 - protocol: TCP - targetPort: 13013 - name: port-13013 - - port: 15013 - protocol: TCP - targetPort: 15013 - name: port-15013 - - port: 16013 - protocol: TCP - targetPort: 16013 - name: port-16013 - selector: - app: ssv-node-prater-3 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-node-prater-3 - name: ssv-node-prater-3 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-node-prater-3 - template: - metadata: - labels: - app: ssv-node-prater-3 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-node-prater-3 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_NODES_CPU_LIMIT - memory: REPLACE_NODES_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12013 - name: port-12013 - hostPort: 12013 - protocol: UDP - - containerPort: 13013 - name: port-13013 - hostPort: 13013 - - containerPort: 15013 - name: port-15013 - hostPort: 15013 - - containerPort: 16013 - name: port-16013 - hostPort: 16013 - env: - - name: SHARE_CONFIG - value: "./data1/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: CONSENSUS_TYPE - value: "validation" - - name: HOST_DNS - value: "" - - name: HOST_ADDRESS - value: "" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15013" - - name: SSV_API_PORT - value: "16013" - - name: ENABLE_PROFILE - value: "true" - - name: BUILDER_PROPOSALS - value: "true" - volumeMounts: - - mountPath: /data - name: ssv-node-prater-3 - - mountPath: /data1/share.yaml - subPath: share.yaml - name: ssv-node-prater-3-cm - volumes: - - name: ssv-node-prater-3 - persistentVolumeClaim: - claimName: ssv-node-prater-3 - - name: ssv-node-prater-3-cm - configMap: - name: ssv-node-prater-3-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true diff --git a/.k8/production/prater/ssv-node-prater-4-deployment.yml b/.k8/production/prater/ssv-node-prater-4-deployment.yml deleted file mode 100644 index 0a8d4e4fd5..0000000000 --- a/.k8/production/prater/ssv-node-prater-4-deployment.yml +++ /dev/null @@ -1,132 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: ssv-node-prater-4-svc - namespace: REPLACE_NAMESPACE - labels: - app: ssv-node-prater-4 -spec: - type: ClusterIP - ports: - - port: 12014 - protocol: UDP - targetPort: 12014 - name: port-12014 - - port: 13014 - protocol: TCP - targetPort: 13014 - name: port-13014 - - port: 15014 - protocol: TCP - targetPort: 15014 - name: port-15014 - - port: 16014 - protocol: TCP - targetPort: 16014 - name: port-16014 - selector: - app: ssv-node-prater-4 ---- -apiVersion: REPLACE_API_VERSION -kind: Deployment -metadata: - labels: - app: ssv-node-prater-4 - name: ssv-node-prater-4 - namespace: REPLACE_NAMESPACE -spec: - replicas: REPLACE_REPLICAS - strategy: - type: Recreate - selector: - matchLabels: - app: ssv-node-prater-4 - template: - metadata: - labels: - app: ssv-node-prater-4 - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/role - operator: In - values: - - ssv-main - - key: beta.kubernetes.io/instance-type - operator: In - values: - - m5a.4xlarge - containers: - - name: ssv-node-prater-4 - image: REPLACE_DOCKER_REPO:REPLACE_IMAGETAG - imagePullPolicy: Always - resources: - limits: - cpu: REPLACE_NODES_CPU_LIMIT - memory: REPLACE_NODES_MEM_LIMIT - command: ["make", "start-node"] - ports: - - containerPort: 12014 - name: port-12014 - hostPort: 12014 - protocol: UDP - - containerPort: 13014 - name: port-13014 - hostPort: 13014 - - containerPort: 15014 - name: port-15014 - hostPort: 15014 - - containerPort: 16014 - name: port-16014 - hostPort: 16014 - env: - - name: SHARE_CONFIG - value: "./data1/share.yaml" - - name: LOG_LEVEL - value: "debug" - - name: DB_REPORTING - value: "false" - - name: PUBSUB_TRACE - value: "false" - - name: DISCOVERY_TYPE_KEY - value: "discv5" - - name: NETWORK - value: "jato-v2" - - name: CONSENSUS_TYPE - value: "validation" - - name: HOST_DNS - value: "" - - name: HOST_ADDRESS - value: "" - - name: DB_PATH - value: "./data/db-jato-v2" - - name: METRICS_API_PORT - value: "15014" - - name: SSV_API_PORT - value: "16014" - - name: ENABLE_PROFILE - value: "true" - - name: BUILDER_PROPOSALS - value: "true" - volumeMounts: - - mountPath: /data - name: ssv-node-prater-4 - - mountPath: /data1/share.yaml - subPath: share.yaml - name: ssv-node-prater-4-cm - volumes: - - name: ssv-node-prater-4 - persistentVolumeClaim: - claimName: ssv-node-prater-4 - - name: ssv-node-prater-4-cm - configMap: - name: ssv-node-prater-4-cm - tolerations: - - effect: NoSchedule - key: kubernetes.io/role - operator: Exists - hostNetwork: true