Skip to content

Commit

Permalink
Merge pull request #305 from appuio/cloudscale.ch/install/cloud-contr…
Browse files Browse the repository at this point in the history
…oller-manager

Add steps to deploy cloud-controller-manager on cloudscale.ch
  • Loading branch information
DebakelOrakel authored May 30, 2024
2 parents 333b640 + 802bb0d commit b61eb39
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
18 changes: 18 additions & 0 deletions docs/modules/ROOT/partials/install/prepare-commodore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ git push
popd
----

ifeval::["{provider}" == "cloudscale"]
. Add Cloud Controller Manager to cluster configuration
+
[source,bash]
----
pushd "inventory/classes/${TENANT_ID}/"

yq eval -i '.classes += ["global.distribution.openshift4.cloud.cloudscale.machineconfig-ccm"]' ${CLUSTER_ID}.yml

yq eval -i '.applications += ["cloudscale-cloud-controller-manager"]' ${CLUSTER_ID}.yml

git commit -a -m "Add Cloud Controller Manager addon to ${CLUSTER_ID}"

git push
popd
----
endif::[]

. Compile catalog
+
include::partial$install/commodore-dynfacts.adoc[]
31 changes: 30 additions & 1 deletion docs/modules/ROOT/partials/install/run-installer.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,40 @@ yq w -i "${INSTALLER_DIR}/manifests/cluster-ingress-02-config.yml" \
spec.domain apps.example.com
----

. Copy pre-rendered extra machine configs
+
[source,bash]
----
machineconfigs=catalog/manifests/openshift4-nodes/10_machineconfigs.yaml
if [ -f $machineconfigs ]; then
yq --no-doc -s \
"\"${INSTALLER_DIR}/openshift/99x_openshift-machineconfig_\" + .metadata.name" \
$machineconfigs
fi
----

ifeval::["{provider}" == "cloudscale"]
. Copy cloud-controller-manager manifests
+
[source,bash]
----
for f in catalog/manifests/cloudscale-cloud-controller-manager/*; do
file=$(basename $f)
# Split resources into individual files
yq --no-doc -s \
"\"${INSTALLER_DIR}/manifests/cloudscale-cloud-controller-manager_${file/.yaml}_\" + \$index + \"_\" + (.kind|downcase)" \
$f
done
yq -i e ".stringData.access-token=\"${CLOUDSCALE_API_TOKEN}\"" \
${INSTALLER_DIR}/manifests/cloudscale-cloud-controller-manager_01_secret_0_secret.yaml
----
endif::[]
. Copy pre-rendered Cilium manifests
+
[source,bash]
----
cp catalog/manifests/cilium/olm/* target/manifests/
cp catalog/manifests/cilium/olm/* ${INSTALLER_DIR}/manifests/
----

. Verify that the generated cluster domain matches the desired cluster domain
Expand Down

0 comments on commit b61eb39

Please sign in to comment.