Here is a dump of my notes from reading code to discover where this value can be updated. May or may not be accurate, but this is my understanding of the system right now.
the live value applied to k8s can be retrieved with:
```
kubectl -n kube-system describe secret cloud-config
# to actually get the contents of cloud.conf:
kubectl -n kube-system get secret cloud-config -o jsonpath='{.data}' | jq -r '."cloud.conf"' | base64 -d
```
Data flow:
layer-k8s-common:generate_openstack_cloud_config() ->
charm-kubernetes-control-plane:configure_cdk_addons() ->
snap set cdk-addons <args>
Then cdk-addons uses this value when creating templates out for k8s.
The value passed to the template context is under the key `cloud_conf`.
I think the templates come from cloud-provider-openstack.
None of these templates reference `cloud_conf` though.
Here is a dump of my notes from reading code to discover where this value can be updated. May or may not be accurate, but this is my understanding of the system right now.
This is where the openstack cloud.conf lives:
``` cdk-addons/ current/ config/ openstack- cloud-conf | base64 -d
juju ssh kuberenets-master/0
cat /var/snap/
```
the live value applied to k8s can be retrieved with:
```
kubectl -n kube-system describe secret cloud-config
# to actually get the contents of cloud.conf:
kubectl -n kube-system get secret cloud-config -o jsonpath='{.data}' | jq -r '."cloud.conf"' | base64 -d
```
Data flow: common: generate_ openstack_ cloud_config( ) -> s-control- plane:configure _cdk_addons( ) ->
layer-k8s-
charm-kubernete
snap set cdk-addons <args>
Then cdk-addons uses this value when creating templates out for k8s. openstack.
The value passed to the template context is under the key `cloud_conf`.
I think the templates come from cloud-provider-
None of these templates reference `cloud_conf` though.
The template that uses `cloud_conf` is in the cdk-addons repo: /github. com/charmed- kubernetes/ cdk-addons/ blob/63a7eaff01 da0718c3c19e012 cc089948263b764 /bundled- templates/ cloud-config- secret- openstack. yaml#L12 config- secret- openstack. yaml) openstack
https:/
(cloud-
This creates the secret that contains the `cloud.conf` key,
that is consumed by the cloud-provider-
To update `internal-lb` conditionally, common: generate_ openstack_ cloud_config( ) /github. com/charmed- kubernetes/ layer-kubernete s-common/ blob/4b91682011 a33aee3c20acbb5 870f59ad8f8b0c2 /lib/charms/ layer/kubernete s_common. py#L550
it would seem that the place is layer-k8s-
https:/