From cbb976975526f86bba4fae1f9fd340314b378b6c Mon Sep 17 00:00:00 2001 From: islishude Date: Thu, 7 Dec 2023 13:37:13 +0800 Subject: [PATCH] k8s: disable service links --- k8s/goerli/statefulset.yaml | 6 +++++- k8s/holeksy/statefulset.yaml | 6 +++++- k8s/mainnet/statefulset.yaml | 1 + k8s/sepolia/statefulset.yaml | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/k8s/goerli/statefulset.yaml b/k8s/goerli/statefulset.yaml index e3015dc..c1289dd 100644 --- a/k8s/goerli/statefulset.yaml +++ b/k8s/goerli/statefulset.yaml @@ -16,11 +16,15 @@ spec: app: ethereum spec: terminationGracePeriodSeconds: 300 + enableServiceLinks: false initContainers: - name: genesis iamge: alpine command: ["sh", "-c"] - args: ["if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/eth2-networks/raw/master/shared/prater/genesis.ssz'; fi"] + args: + [ + "if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/eth2-networks/raw/master/shared/prater/genesis.ssz'; fi", + ] workingDir: "/data" volumeMounts: - name: prysm diff --git a/k8s/holeksy/statefulset.yaml b/k8s/holeksy/statefulset.yaml index 4f7f4d9..2e0902f 100644 --- a/k8s/holeksy/statefulset.yaml +++ b/k8s/holeksy/statefulset.yaml @@ -16,11 +16,15 @@ spec: app: ethereum spec: terminationGracePeriodSeconds: 300 + enableServiceLinks: false initContainers: - name: genesis iamge: alpine command: ["sh", "-c"] - args: ["if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/holesky/raw/main/custom_config_data/genesis.ssz'; fi"] + args: + [ + "if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/holesky/raw/main/custom_config_data/genesis.ssz'; fi", + ] workingDir: "/data" volumeMounts: - name: prysm diff --git a/k8s/mainnet/statefulset.yaml b/k8s/mainnet/statefulset.yaml index bc9e912..5366164 100644 --- a/k8s/mainnet/statefulset.yaml +++ b/k8s/mainnet/statefulset.yaml @@ -16,6 +16,7 @@ spec: app: ethereum spec: terminationGracePeriodSeconds: 300 + enableServiceLinks: false containers: - name: geth image: ethereum/client-go diff --git a/k8s/sepolia/statefulset.yaml b/k8s/sepolia/statefulset.yaml index 2c0df9a..4e52441 100644 --- a/k8s/sepolia/statefulset.yaml +++ b/k8s/sepolia/statefulset.yaml @@ -16,6 +16,7 @@ spec: app: ethereum spec: terminationGracePeriodSeconds: 300 + enableServiceLinks: false initContainers: - name: genesis iamge: alpine