forked from aws/eks-anywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for etcd encryption in vSphere (aws#6831)
* Add support for etcd encryption in vSphere * Add e2e test for vsphere etcd encryption
- Loading branch information
1 parent
51636f0
commit 3d5bbb1
Showing
8 changed files
with
1,038 additions
and
1 deletion.
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
132 changes: 132 additions & 0 deletions
132
pkg/providers/vsphere/testdata/cluster_ubuntu_etcd_encryption.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,132 @@ | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: Cluster | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
controlPlaneConfiguration: | ||
count: 3 | ||
endpoint: | ||
host: 1.2.3.4 | ||
machineGroupRef: | ||
name: test-cp | ||
kind: VSphereMachineConfig | ||
kubernetesVersion: "1.21" | ||
etcdEncryption: | ||
- providers: | ||
- kms: | ||
name: config1 | ||
socketListenAddress: unix:///var/run/kmsplugin/socket1-new.sock | ||
- kms: | ||
name: config2 | ||
socketListenAddress: unix:///var/run/kmsplugin/socket1-old.sock | ||
resources: | ||
- secrets | ||
- resource1.anywhere.eks.amazonsaws.com | ||
- providers: | ||
- kms: | ||
name: config3 | ||
socketListenAddress: unix:///var/run/kmsplugin/socket2-new.sock | ||
- kms: | ||
name: config4 | ||
socketListenAddress: unix:///var/run/kmsplugin/socket2-old.sock | ||
resources: | ||
- configmaps | ||
- resource2.anywhere.eks.amazonsaws.com | ||
workerNodeGroupConfigurations: | ||
- count: 3 | ||
machineGroupRef: | ||
name: test-wn | ||
kind: VSphereMachineConfig | ||
name: md-0 | ||
externalEtcdConfiguration: | ||
count: 3 | ||
machineGroupRef: | ||
name: test-etcd | ||
kind: VSphereMachineConfig | ||
datacenterRef: | ||
kind: VSphereDatacenterConfig | ||
name: test | ||
clusterNetwork: | ||
cni: "cilium" | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
services: | ||
cidrBlocks: | ||
- 10.96.0.0/12 | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-cp | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 8192 | ||
numCPUs: 2 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-2004-kube-v1.21.2" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== [email protected]" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-wn | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 4096 | ||
numCPUs: 3 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-2004-kube-v1.21.2" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== [email protected]" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereMachineConfig | ||
metadata: | ||
name: test-etcd | ||
namespace: test-namespace | ||
spec: | ||
diskGiB: 25 | ||
cloneMode: linkedClone | ||
datastore: "/SDDC-Datacenter/datastore/WorkloadDatastore" | ||
folder: "/SDDC-Datacenter/vm" | ||
memoryMiB: 4096 | ||
numCPUs: 3 | ||
osFamily: ubuntu | ||
resourcePool: "*/Resources" | ||
storagePolicyName: "vSAN Default Storage Policy" | ||
template: "/SDDC-Datacenter/vm/Templates/ubuntu-2004-kube-v1.21.2" | ||
users: | ||
- name: capv | ||
sshAuthorizedKeys: | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1BK73XhIzjX+meUr7pIYh6RHbvI3tmHeQIXY5lv7aztN1UoX+bhPo3dwo2sfSQn5kuxgQdnxIZ/CTzy0p0GkEYVv3gwspCeurjmu0XmrdmaSGcGxCEWT/65NtvYrQtUE5ELxJ+N/aeZNlK2B7IWANnw/82913asXH4VksV1NYNduP0o1/G4XcwLLSyVFB078q/oEnmvdNIoS61j4/o36HVtENJgYr0idcBvwJdvcGxGnPaqOhx477t+kfJAa5n5dSA5wilIaoXH5i1Tf/HsTCM52L+iNCARvQzJYZhzbWI1MDQwzILtIBEQCJsl2XSqIupleY8CxqQ6jCXt2mhae+wPc3YmbO5rFvr2/EvC57kh3yDs1Nsuj8KOvD78KeeujbR8n8pScm3WDp62HFQ8lEKNdeRNj6kB8WnuaJvPnyZfvzOhwG65/9w13IBl7B1sWxbFnq2rMpm5uHVK7mAmjL0Tt8zoDhcE1YJEnp9xte3/pvmKPkST5Q/9ZtR9P5sI+02jY0fvPkPyC03j2gsPixG7rpOCwpOdbny4dcj0TDeeXJX8er+oVfJuLYz0pNWJcT2raDdFfcqvYA0B0IyNYlj5nWX4RuEcyT3qocLReWPnZojetvAG/H8XwOh7fEVGqHAKOVSnPXCSQJPl6s0H12jPJBDJMTydtYPEszl4/CeQ== [email protected]" | ||
--- | ||
apiVersion: anywhere.eks.amazonaws.com/v1alpha1 | ||
kind: VSphereDatacenterConfig | ||
metadata: | ||
name: test | ||
namespace: test-namespace | ||
spec: | ||
datacenter: "SDDC-Datacenter" | ||
network: "/SDDC-Datacenter/network/sddc-cgw-network-1" | ||
server: "vsphere_server" | ||
thumbprint: "ABCDEFG" | ||
insecure: false |
Oops, something went wrong.