Copy encryption provider config file to second controller
kube-apiserver encryption provider config file is generated by ansible bootstrap on the first controller and stored in the shared fs. It is then copied over to the second controller. When kube-apiserver pod starts it will take this configuration file as its encryption provider configuration. Change-Id: Ibfcfb13c8a6685e38a1043acd7ec752ea116911c Story: 2007243 Task: 38627 Signed-off-by: Andy Ning <andy.ning@windriver.com>
This commit is contained in:
parent
6146360816
commit
29f38ce637
@ -344,6 +344,18 @@ start()
|
||||
fi
|
||||
fi
|
||||
|
||||
# Copy over kube api server encryption provider config
|
||||
if [ -e $CONFIG_DIR/kubernetes/encryption-provider.yaml ]
|
||||
then
|
||||
cp $CONFIG_DIR/kubernetes/encryption-provider.yaml /etc/kubernetes/
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
fatal_error "Unable to copy kube api server encryption provider config file"
|
||||
else
|
||||
chmod 600 /etc/kubernetes/encryption-provider.yaml
|
||||
fi
|
||||
fi
|
||||
|
||||
# Keep the /opt/branding directory to preserve any new files
|
||||
rm -rf /opt/branding/*.tgz
|
||||
cp $CONFIG_DIR/branding/*.tgz /opt/branding 2>/dev/null
|
||||
|
Loading…
x
Reference in New Issue
Block a user