adamant-kite-43734
05/03/2024, 1:37 PMacoustic-addition-45641
05/03/2024, 1:40 PMacoustic-addition-45641
05/03/2024, 1:54 PMacoustic-addition-45641
05/03/2024, 1:56 PMcreamy-crayon-86622
05/17/2024, 11:22 PMcreamy-crayon-86622
05/17/2024, 11:23 PMacoustic-addition-45641
05/20/2024, 2:50 PMcreamy-crayon-86622
05/21/2024, 12:22 PMacoustic-addition-45641
05/21/2024, 1:10 PMenough-family-25408
07/24/2024, 7:40 AM#cloud-config package_update: true package_upgrade: true packages: ['nfs-common']
creamy-crayon-86622
07/24/2024, 10:27 AMenough-family-25408
07/24/2024, 10:38 AMexisting userdata file does not begin with '#!' or '#cloud-config'
acoustic-addition-45641
07/24/2024, 12:57 PMuserDataFile
field, some of the other fields that are referred to as files (e.g. clouds-file
, cert-file
, and key-file
) are described as paths to files and not actually file content.
I wonder if the cacert
and userDataFile
fields are actually supposed to be file paths/URIs/URLs.enough-family-25408
07/24/2024, 1:17 PMacoustic-addition-45641
07/24/2024, 5:46 PMuserDataFile
contents that I configure (just SSH password settings and quemu guest agent) are being merged.enough-family-25408
07/25/2024, 6:40 AM#!/usr/bin/env -S bash -c "echo Start node >> /home/ubuntu/start.log
therefore it should also work when setting the same in rancher, since it is literally a single line.
I want to check what happens if I set Cloud Provider to external within the Cluster Configuration menu, instead of using rke default. Maybe cloud config can be set there with multiline content.enough-family-25408
07/26/2024, 11:48 AMfleet-default
-> rke-machine-config.cattle.io.openstackconfigs
With this maybe things can be test out direcltyenough-family-25408
07/26/2024, 12:00 PMrke-machine-config.cattle.io.openstackconfigs
file:
Single line:
userDataFile: '#cloud-config runcmd:["echo Start node >> /home/ubuntu/start.log"]'
Multiline:
userDataFile: >-
#cloud-config package_update: true package_upgrade: true packages: -
nfs-common cloud_config_modules: - runcmd runcmd: - echo "test" output:
{all: '| tee -a /var/log/cloud-init-output.log'}
enough-family-25408
07/26/2024, 12:56 PMuserDataFile: |
#cloud-config
runcmd:
- echo Start node >> /home/ubuntu/start.log
acoustic-addition-45641
07/26/2024, 1:25 PMenough-family-25408
07/26/2024, 1:37 PM>-
maybe it is possible to work with \n_
I did try out to set CLuster Provider
to External and define Cloud Provider Config
but I couldn't get it to work.
Or do you maybe have another idea?acoustic-addition-45641
07/26/2024, 1:44 PM\n
, but did not try using |
Hopefully the bug report will get an official response on how this field should be formatted.enough-family-25408
07/31/2024, 6:48 AMenough-family-25408
08/01/2024, 12:11 PMenough-family-25408
09/03/2024, 1:43 PMcreamy-crayon-86622
09/09/2024, 6:17 PMenough-family-25408
09/10/2024, 9:42 AM<https://jugit.fz-juelich.de/iek-10/public/ict-platform/deployment/kubernetes/rke2-rancher-cluster-templates>
- Configure OpenStack Access: openstack-secrets.yaml
- Fill out the values.yaml
, especially x-openstackconfig
- Create a cluster using that file and the template
- Login into the created Downstream Cluster (it will not show in rancher as running until you complete the next step)
- Create cloud-config
secret on Downstream Cluster
- nano cloud.conf
-
[Global]
auth-url="<https://example.com:5000/v3>"
application-credential-id=""
application-credential-secret=""
region=""
tls-insecure=false
[LoadBalancer]
manage-security-groups=false
floating-network-id=""
subnet-id=""
- kubectl create secret -n kube-system generic cloud-config --from-file=./cloud.conf
- Wait until the cluster shows up as running in rancher
Important notice:
cluster.config:
machineGlobalConfig:
disable_cloud_controller: true
machineSelectorConfig.kubelet_arg:
- cloud-provider=external
These two options are crucial, without them OCCM will not work.enough-family-25408
09/10/2024, 9:45 AMenough-family-25408
09/13/2024, 6:30 AM