-
Notifications
You must be signed in to change notification settings - Fork 132
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 EBS volume encryption (#663)
* add support for EBS volume encryption Signed-off-by: Moath Qasim <[email protected]> * addressing PR review Signed-off-by: Moath Qasim <[email protected]> Signed-off-by: Moath Qasim <[email protected]>
- Loading branch information
1 parent
2b8a521
commit 3243593
Showing
7 changed files
with
148 additions
and
37 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
presubmits: | ||
|
||
- name: pull-machine-controller-e2e-aws-ebs-encryption-enabled | ||
always_run: true | ||
decorate: true | ||
error_on_eviction: true | ||
clone_uri: 'ssh://[email protected]/kubermatic/machine-controller.git' | ||
labels: | ||
preset-aws: "true" | ||
preset-hetzner: "true" | ||
preset-e2e-ssh: "true" | ||
spec: | ||
containers: | ||
# Uses go1.11.1 | ||
- image: quay.io/kubermatic/dep:0.5.4-2 | ||
command: | ||
- "./hack/ci-e2e-test.sh" | ||
args: | ||
- "TestAWSProvisioningE2EWithEbsEncryptionEnabled" | ||
resources: | ||
requests: | ||
memory: 1Gi | ||
cpu: 500m |
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
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
51 changes: 51 additions & 0 deletions
51
test/e2e/provisioning/testdata/machinedeployment-aws-ebs-encryption-enabled.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,51 @@ | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
kind: MachineDeployment | ||
metadata: | ||
name: << MACHINE_NAME >> | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
selector: | ||
matchLabels: | ||
name: << MACHINE_NAME >> | ||
template: | ||
metadata: | ||
labels: | ||
name: << MACHINE_NAME >> | ||
spec: | ||
providerSpec: | ||
value: | ||
sshPublicKeys: | ||
- "<< YOUR_PUBLIC_KEY >>" | ||
cloudProvider: "aws" | ||
cloudProviderSpec: | ||
accessKeyId: << AWS_ACCESS_KEY_ID >> | ||
secretAccessKey: << AWS_SECRET_ACCESS_KEY >> | ||
region: "eu-central-1" | ||
availabilityZone: "eu-central-1a" | ||
vpcId: "vpc-819f62e9" | ||
instanceType: "t2.medium" | ||
instanceProfile: "kubernetes-v1" | ||
diskSize: 50 | ||
diskType: "gp2" | ||
ebsVolumeEncrypted: true | ||
securityGroupIDs: | ||
- "sg-a2c195ca" | ||
tags: | ||
# you have to set this flag to real clusterID when running against our dev or prod | ||
# otherwise you might have issues with your nodes not joining the cluster | ||
"KubernetesCluster": "randomString" | ||
# Disabling the public IP assignment requires a private subnet with internet access. | ||
assignPublicIP: true | ||
# Can be 'ubuntu', 'coreos' or 'centos' | ||
operatingSystem: "<< OS_NAME >>" | ||
operatingSystemSpec: | ||
distUpgradeOnBoot: false | ||
disableAutoUpdate: true | ||
versions: | ||
kubelet: "<< KUBERNETES_VERSION >>" |
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