In Gravity 5.xx, Planet’s kubernetes services are referenced in /lib/systemd/system/kube-<service-name>.service
. I can use sed
within a Dockerfile to update these flags in these files (such as --myflag==foobar).
In Planet 6.1.4 I see some of these flags within the files have changed to variables. How would I customize say APIServer flags when the data I’d like to customize is located within these variables?
For example I’d like to disable a feature-gate, but these are now located within what looks like the $KUBE_APISERVER_FLAGS
within the /lib/systemd/system/kube-apiserver.service
file.
I tried using the --config=envars.yaml
option and creating a new $KUBE_COMPONENTS_FLAG env variable, but this did not work and now the API server has two such variables:
CGroup: /system.slice/-planet-4b0725e6-0748-4365-82fd-4d356ef16e2a.scope/system.slice/kube-apiserver.service
└─1178 /usr/bin/kube-apiserver --insecure-port=0 <...truncated...> --feature-gates=AllAlpha=true,APIResponseCompression=false,BoundServiceAccountTokenVolume=false,CSIDriverRegistry=false,CSINodeInfo=false,KubeletPodResources=false,ServerSideApply=false --feature-gates=AllAlpha=true,APIResponseCompression=false,BoundServiceAccountTokenVolume=false,CSIDriverRegistry=false,CSINodeInfo=false,KubeletPodResources=false
node01:/$ cat /etc/container-environment
KUBE_COMPONENT_FLAGS="--feature-gates=AllAlpha=true,APIResponseCompression=false,BoundServiceAccountTokenVolume=false,CSIDriverRegistry=false,CSINodeInfo=false,KubeletPodResources=false,ServerSideApply=false --feature-gates=AllAlpha=true,APIResponseCompression=false,BoundServiceAccountTokenVolume=false,CSIDriverRegistry=false,CSINodeInfo=false,KubeletPodResources=false"