Merge pull request #3874 from KashifSaadat/bootstrap-apiserver-encryption

Automatic merge from submit-queue.

Include encryptionConfig setting within userdata for masters.

When updating the kops `ClusterSpec.EncryptionConfig` setting, a `kops update cluster / kops rolling-update cluster` mentions no changes required, and so a forced rolling-update is required for the setting to be picked up.

Including this in bootstrapscript will add the setting to the user-data for the master nodes only (because it applies to the KubeAPIServer), marking them as requiring a rolling-update.
This commit is contained in:
Kubernetes Submit Queue 2017-11-16 09:04:17 -08:00 committed by GitHub
commit e1ff22e125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,7 @@ func (b *BootstrapScript) ResourceNodeUp(ig *kops.InstanceGroup, cs *kops.Cluste
spec["kubeProxy"] = cs.KubeProxy
if ig.IsMaster() {
spec["encryptionConfig"] = cs.EncryptionConfig
spec["kubeAPIServer"] = cs.KubeAPIServer
spec["kubeControllerManager"] = cs.KubeControllerManager
spec["kubeScheduler"] = cs.KubeScheduler

View File

@ -158,6 +158,7 @@ cloudConfig:
nodeTags: something
docker:
logLevel: INFO
encryptionConfig: null
kubeAPIServer:
image: CoreOS
kubeControllerManager:

View File

@ -158,6 +158,7 @@ cloudConfig:
nodeTags: something
docker:
logLevel: INFO
encryptionConfig: null
fileAssets:
- content: E1oeAbrnQsSldrIP1BpoP2SDykM= (fingerprint)
name: iptables-restore

View File

@ -158,6 +158,7 @@ cloudConfig:
nodeTags: something
docker:
logLevel: INFO
encryptionConfig: null
fileAssets:
- content: E1oeAbrnQsSldrIP1BpoP2SDykM= (fingerprint)
name: iptables-restore

View File

@ -156,6 +156,7 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersadditionaluserda
logLevel: warn
storage: overlay,aufs
version: 1.11.2
encryptionConfig: null
kubeAPIServer:
address: 127.0.0.1
admissionControl:

View File

@ -147,6 +147,7 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersminimalexampleco
logLevel: warn
storage: overlay,aufs
version: 1.11.2
encryptionConfig: null
kubeAPIServer:
address: 127.0.0.1
admissionControl: