This is a known issue affecting Enterprise PKS 1.3.6 and below. This issue is resolved in Enterprise PKS 1.3.7 and above.Workaround:
Use the following steps to workaround this issue:
- Create an opsfile similar to the following to set the root-dir .
cat /tmp/opsfile-set-kubelet-root-dir.yaml
- type: replace
path: /instance_groups/name=worker?/jobs/name=kubelet/properties/k8s-args/root-dir
value: ((root_dir))
- Issue a command similar to the following to download the manifest of a target cluster via BOSH
bosh manifest -d service-instance_4d52f36a-8075-437d-b386-1b92d1322a28 > /tmp/my-manifest.yaml
- Issue a command similar to the following to Interpolate the downloaded manifest from Step 2 with the opsfile from Step 1 and variable to make sure you see your desired output
bosh interpolate /tmp/my-manifest.yaml -o /tmp/opsfile-set-kubelet-root-dir.yaml -v root_dir="/var/vcap/data/kubelet" | grep root-dir
Note: You should see output similar to the following:
root-dir: /var/vcap/data/kubelet
- Issue a command similar to the following to apply the changes to the cluster:
bosh deploy -d service-instance_4d52f36a-8075-437d-b386-1b92d1322a28 /tmp/my-manifest.yaml -o /tmp/opsfile-set-kubelet-root-dir.yaml -v root_dir="/var/vcap/data/kubelet"
Notes:
- The changes will be lost when you upgrade the PKS tile or do a resize on the cluster. Resurrection will keep the existing changes.
- When you copy from the text editor to the cli, type the double quotes manually. This will prevent you from running into any issues with improper quotation marks being used.