πŸ’ 
Ethereum 2.0
We've extended Kubernetes with BeaconNode and Validator custom resources which can be used to deploy Ethereum 2.0 beacon nodes and validator clients from the given spec.
Kotal seperates between beacon node and validator client by using different API resources BeaconNode and Validator. So you can't run a beacon node and validator client in the same process/container.

Beacon Node

BeaconNode is Ethereum 2.0 beacon node -optionally- connecting to Ethereum 1 endpoint and syncing the beacon chain.
Here's an example of ConsenSys Teku beacon node BeaconNode syncing mainnet beacon chain, connecting to Ethereum 1 JSON RPC endpoint, enabling REST API server which is listening at port 8888:
1
apiVersion: ethereum2.kotal.io/v1alpha1
2
kind: BeaconNode
3
metadata:
4
name: teku-beacon-node
5
spec:
6
network: mainnet
7
client: teku
8
rest: true
9
restPort: 8888
10
eth1Endpoints:
11
- http://besu-mainnet-node:8545
Copied!
For all the fields associated with the BeaconNode API resource:
1
kubectl explain beaconnode --api-version ethereum2.kotal.io/v1alpha1
2
kubectl explain beaconnode.spec --api-version ethereum2.kotal.io/v1alpha1
Copied!
Full beacon node reference is documented here.

Validator Client

Validator is Ethereum 2.0 validator client connecting to beacon node endpoint and validating blocks using the loaded keystores.
Here's an example of ConsenSys Teku validator client connecting to beacon node endpoint, validating pyrmont blocks using 1 loaded validator keystore from its secret:
1
apiVersion: ethereum2.kotal.io/v1alpha1
2
kind: Validator
3
metadata:
4
name: teku-validator
5
spec:
6
network: pyrmont
7
client: teku
8
beaconEndpoints:
9
- http://teku-beacon-node:8888
10
graffiti: Validated by Kotal
11
keystores:
12
- secretName: my-validator
Copied!
For all the fields associated with the Validator API resource:
1
kubectl explain validator --api-version ethereum2.kotal.io/v1alpha1
2
kubectl explain validator.spec --api-version ethereum2.kotal.io/v1alpha1
3
kubectl explain validator.spec.keystores --api-version ethereum2.kotal.io/v1alpha1
Copied!
Full validator client reference is documented here.

Multi-client Support

Kotal supports the following Ethereum 2.0 beacon node and validator clients:
Setting validator or beacon node client is as simple as changing the spec.client to the desired client.