Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Last active February 16, 2023 19:43
Show Gist options
  • Save jayunit100/41fd68f8b24caf82145cb25fc788b16b to your computer and use it in GitHub Desktop.
Save jayunit100/41fd68f8b24caf82145cb25fc788b16b to your computer and use it in GitHub Desktop.
json patches
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraVolumes",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/etcd/local/extraArgs",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs","path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/controllerManager/extraArgs",
"path": "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs",
"path": "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs",
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs",
"path": "/spec/template/spec/controlPlaneEndpoint",
"path": "/spec/template/spec/thumbprint",
"path": "/spec/template/spec/server",
"path": "/spec/template/spec/identityRef",
"path": "/spec/template/spec/numCPUs",
"path": "/spec/template/spec/diskGiB",
"path": "/spec/template/spec/memoryMiB",
"path": "/spec/template/spec/cloneMode",
"path": "/spec/template/spec/network",
"path": "/spec/template/spec/datacenter",
"path": "/spec/template/spec/datastore",
"path": "/spec/template/spec/folder",
"path": "/spec/template/spec/resourcePool",
"path": "/spec/template/spec/storagePolicyName",
"path": "/spec/template/spec/server",
"path": "/spec/template/spec/template",
"path": "/spec/template/spec/numCPUs",
"path": "/spec/template/spec/diskGiB",
"path": "/spec/template/spec/memoryMiB",
"path": "/spec/template/spec/cloneMode",
"path": "/spec/template/spec/network",
"path": "/spec/template/spec/datacenter",
"path": "/spec/template/spec/datastore",
"path": "/spec/template/spec/folder",
"path": "/spec/template/spec/resourcePool",
"path": "/spec/template/spec/storagePolicyName",
"path": "/spec/template/spec/server",
"path": "/spec/template/spec/template",
"path": "/spec/template/spec/kubeadmConfigSpec/users",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/imageRepository",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/etcd/local/imageRepository",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/etcd/local/imageTag",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/dns/imageRepository",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/dns/imageTag",
"path": "/spec/template/spec/users",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"path": "/spec/template/spec/network",
"path": "/spec/template/spec/network",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/controlPlaneEndpoint/port",
"path": "/spec/template/spec/kubeadmConfigSpec/initConfiguration/localAPIEndpoint",
"path": "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/controlPlane",
"path": "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/node-ip",
"path": "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/node-ip",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/advertise-address",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/bind-address",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/controllerManager/extraArgs/bind-address",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs/bind-address",
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/node-ip",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"path": "/etc/sysconfig/kubelet",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/node-labels",
"path": "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/node-labels",
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/node-labels",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"template": "content: |\n [Service]\n Environment=\"HTTP_PROXY= {{- .proxy.httpProxy -}} \"\n Environment=\"HTTPS_PROXY= {{- .proxy.httpsProxy -}} \"\n Environment=\"NO_PROXY= {{- list \"localhost\" \"127.0.0.1\" \".svc\" \".svc.cluster.local\" ((list \"IPv6\" \"DualStack\" | has .builtin.cluster.network.ipFamily) | ternary \"::1\" nil) | concat .proxy.noProxy .builtin.cluster.network.services .builtin.cluster.network.pods | uniq | sortAlpha | join \",\" -}} \"\nowner: root:root\npath: /etc/systemd/system/containerd.service.d/http-proxy.conf\npermissions: \"0640\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"template": "content: |\n [Service]\n Environment=\"HTTP_PROXY= {{- .proxy.httpProxy -}} \"\n Environment=\"HTTPS_PROXY= {{- .proxy.httpsProxy -}} \"\n Environment=\"NO_PROXY= {{- list \"localhost\" \"127.0.0.1\" \".svc\" \".svc.cluster.local\" ((list \"IPv6\" \"DualStack\" | has .builtin.cluster.network.ipFamily) | ternary \"::1\" nil) | concat .proxy.noProxy .builtin.cluster.network.services .builtin.cluster.network.pods | uniq | sortAlpha | join \",\" -}} \"\nowner: root:root\npath: /usr/lib/systemd/system/kubelet.service.d/http-proxy.conf\npermissions: \"0640\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/files/-",
"template": "content: |\n [Service]\n Environment=\"HTTP_PROXY= {{- .proxy.httpProxy -}} \"\n Environment=\"HTTPS_PROXY= {{- .proxy.httpsProxy -}} \"\n Environment=\"NO_PROXY= {{- list \"localhost\" \"127.0.0.1\" \".svc\" \".svc.cluster.local\" ((list \"IPv6\" \"DualStack\" | has .builtin.cluster.network.ipFamily) | ternary \"::1\" nil) | concat .proxy.noProxy .builtin.cluster.network.services .builtin.cluster.network.pods | uniq | sortAlpha | join \",\" -}} \"\nowner: root:root\npath: /etc/systemd/system/containerd.service.d/http-proxy.conf\npermissions: \"0640\"\n"
"path": "/spec/template/spec/files/-",
"template": "content: |\n [Service]\n Environment=\"HTTP_PROXY= {{- .proxy.httpProxy -}} \"\n Environment=\"HTTPS_PROXY= {{- .proxy.httpsProxy -}} \"\n Environment=\"NO_PROXY= {{- list \"localhost\" \"127.0.0.1\" \".svc\" \".svc.cluster.local\" ((list \"IPv6\" \"DualStack\" | has .builtin.cluster.network.ipFamily) | ternary \"::1\" nil) | concat .proxy.noProxy .builtin.cluster.network.services .builtin.cluster.network.pods | uniq | sortAlpha | join \",\" -}} \"\nowner: root:root\npath: /usr/lib/systemd/system/kubelet.service.d/http-proxy.conf\npermissions: \"0640\"\n"
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"template": "path: /etc/ssl/certs/tkg-custom-ca.pem\n{{- $proxy := \"\" }}\n{{- range .trust.additionalTrustedCAs }}\n {{- if eq .name \"proxy\" }}\n {{- $proxy = .data }}\n {{- end }}\n{{- end }}\ncontent: {{ $proxy }}\nencoding: base64\npermissions: \"0444\"\n"
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/files/-",
"template": "path: /etc/ssl/certs/tkg-custom-ca.pem\n{{- $proxy := \"\" }}\n{{- range .trust.additionalTrustedCAs }}\n {{- if eq .name \"proxy\" }}\n {{- $proxy = .data }}\n {{- end }}\n{{- end }}\ncontent: {{ $proxy }}\nencoding: base64\npermissions: \"0444\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"template": "path: /etc/containerd/ {{- index (or .imageRepository.host (index .TKR_DATA .builtin.controlPlane.version).kubernetesSpec.imageRepository | splitList \"/\") 0 -}} .crt\n{{- $proxy := \"\" }}\n{{- $image := \"\" }}\n{{- range .trust.additionalTrustedCAs }}\n {{- if eq .name \"proxy\" }}\n {{- $proxy = .data }}\n {{- end }}\n {{- if eq .name \"imageRepository\" }}\n {{- $image = .data }}\n {{- end }}\n{{- end }}\ncontent: {{or $proxy $image}}\nencoding: base64\npermissions: \"0444\"\n"
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/preKubeadmCommands/-",
"path": "/spec/template/spec/files/-",
"template": "path: /etc/containerd/{{ index (or .imageRepository.host (index .TKR_DATA .builtin.machineDeployment.version).kubernetesSpec.imageRepository | splitList \"/\") 0 }}.crt\n{{- $proxy := \"\" }}\n{{- $image := \"\" }}\n{{- range .trust.additionalTrustedCAs }}\n {{- if eq .name \"proxy\" }}\n {{- $proxy = .data }}\n {{- end }}\n {{- if eq .name \"imageRepository\" }}\n {{- $image = .data }}\n {{- end }}\n{{- end }}\ncontent: {{or $proxy $image}}\nencoding: base64\npermissions: \"0444\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/audit-log-path",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/audit-policy-file",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/audit-log-maxage",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/audit-log-maxbackup",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/audit-log-maxsize",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraVolumes/-",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraVolumes/-",
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"path": "/etc/kubernetes/audit-policy.yaml",
"path": "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/taints",
"path": "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/taints",
"path": "/spec/template/spec/rolloutBefore",
"path": "/spec/template/spec/useExperimentalRetryJoin"
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/criSocket",
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/tls-cipher-suites"
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/register-with-taints",
"path": "/spec/template/spec/joinConfiguration/nodeRegistration/name",
"path": "/spec/template/spec/preKubeadmCommands",
"path": "/spec/template/spec/files/-",
"path": "C:\\k\\prevent_windows_updates.ps1"
"path": "/spec/template/spec/postKubeadmCommands/-",
"path": "/spec/template/spec/users",
"path": "/spec/template/spec/files/-",
"path": "C:\\Temp\\antrea.ps1"
"path": "/spec/template/spec/postKubeadmCommands/-",
"path": "/spec/template/spec/kubeadmConfigSpec/ntp",
"path": "/spec/template/spec/ntp",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/certSANs",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/admission-control-config-file",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraVolumes/-",
"template": "name: admin-control-conf\nhostPath: /etc/kubernetes/admission-control-config.yaml\nmountPath: /etc/kubernetes/admission-control-config.yaml\nreadOnly: true\npathType: \"File\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/enable-admission-plugins",
"path": "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraVolumes/-",
"template": "name: event-conf\nhostPath: /etc/kubernetes/eventConfig.yaml\nmountPath: /etc/kubernetes/eventConfig.yaml\nreadOnly: true\npathType: \"File\"\n"
"path": "/spec/template/spec/kubeadmConfigSpec/files/-",
template": "path: /etc/kubernetes/eventConfig.yaml\nencoding: base64\ncontent: {{ .eventRateLimitConf}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment