mirror of https://github.com/kubernetes/kops.git
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:
commit
e1ff22e125
|
@ -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
|
||||
|
|
|
@ -158,6 +158,7 @@ cloudConfig:
|
|||
nodeTags: something
|
||||
docker:
|
||||
logLevel: INFO
|
||||
encryptionConfig: null
|
||||
kubeAPIServer:
|
||||
image: CoreOS
|
||||
kubeControllerManager:
|
||||
|
|
|
@ -158,6 +158,7 @@ cloudConfig:
|
|||
nodeTags: something
|
||||
docker:
|
||||
logLevel: INFO
|
||||
encryptionConfig: null
|
||||
fileAssets:
|
||||
- content: E1oeAbrnQsSldrIP1BpoP2SDykM= (fingerprint)
|
||||
name: iptables-restore
|
||||
|
|
|
@ -158,6 +158,7 @@ cloudConfig:
|
|||
nodeTags: something
|
||||
docker:
|
||||
logLevel: INFO
|
||||
encryptionConfig: null
|
||||
fileAssets:
|
||||
- content: E1oeAbrnQsSldrIP1BpoP2SDykM= (fingerprint)
|
||||
name: iptables-restore
|
||||
|
|
|
@ -156,6 +156,7 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersadditionaluserda
|
|||
logLevel: warn
|
||||
storage: overlay,aufs
|
||||
version: 1.11.2
|
||||
encryptionConfig: null
|
||||
kubeAPIServer:
|
||||
address: 127.0.0.1
|
||||
admissionControl:
|
||||
|
|
|
@ -147,6 +147,7 @@ Resources.AWSAutoScalingLaunchConfigurationmasterustest1amastersminimalexampleco
|
|||
logLevel: warn
|
||||
storage: overlay,aufs
|
||||
version: 1.11.2
|
||||
encryptionConfig: null
|
||||
kubeAPIServer:
|
||||
address: 127.0.0.1
|
||||
admissionControl:
|
||||
|
|
Loading…
Reference in New Issue