Skip to content

Commit 5e808d2

Browse files
committed
Some sample workloads.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 5f386ab commit 5e808d2

5 files changed

Lines changed: 40 additions & 7 deletions

File tree

55-remove-kube-dashboard.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
# (c) Kurt Garloff <s7n@garloff.de>, 5/2025
3+
# SPDX-License-Identifier: CC-BY-SA-4.0
4+
set -e
5+
THISDIR=$(dirname 0)
6+
# We need settings
7+
unset KUBECONFIG
8+
if test -n "$1"; then
9+
SET="$1"
10+
else
11+
if test -e cluster-settings.env; then SET=cluster-settings.env;
12+
else echo "You need to pass a cluster-settings.env file as parameter"; exit 1
13+
fi
14+
fi
15+
# Read settings -- make sure you can trust it
16+
source "$SET"
17+
# Use workload cluster
18+
export KUBECONFIG=~/.kube/$CS_NAMESPACE.$CL_NAME
19+
kubectl delete namespace kubernetes-dashboard
20+
File renamed without changes.

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,22 @@ copy, fill it in, and pass it to the scripts.
2525
* 02-deploy-capi.sh: Install ORC and CAPI.
2626
* 03-deploy-cso.sh: Install the Cluster Stack Operator.
2727

28-
* 18-delete-kind.sh: Remove kind cluster management again.
29-
3028
### Once per OpenStack Project in which we want to install clusters (NS)
3129
* 04-cloud-secret.sh: Create namespace and secrets to work with the
3230
wanted OpenStack project.
3331

3432
### Once per Kubernetes aka CS version (maj.min)
35-
* 05-deploy-cstack.sh: Create the Cluster Stack which is a template
33+
* 05-deploy-cstack.sh: Create Cluster Stacks which are templates
3634
for various clusters with the same major minor version of k8s.
3735
Should trigger cluster class creation and image registration.
38-
* 06-wait-clusterclass.sh: Wait for the cluster class
36+
* 06-wait-clusterclass.sh: Wait for the cluster class needed by your
37+
workload cluster.
3938

4039
### Once per cluster
4140
* 07-create-cluster.sh: Create a workload cluster as per all the settings
4241
that are passed.
4342
* 08-wait-cluster.sh: Wait for the workload cluster
4443

45-
* 16-cleanup-cluster.sh: Remove loadbalancers and persistent volumes from cluster.
46-
* 17-delete-cluster.sh: Remove cluster again.
47-
4844
### CSI Cinder fixup
4945
The `cloud.conf` generated by the helm openstack-csp-helper in step 04
5046
references a `ca-file=/etc/config/cacert` if a custom CA file is being
@@ -56,6 +52,23 @@ to a non-existing file, see [ClusterStacks issue #188](https://github.com/Sovere
5652
This results in a `CrashLoopBackup` state for
5753
the openstack-cinder-csi-* pods in the workload cluster. Until this
5854
is fixed up upstream, it can be patched using the `09-fixup-cinder.sh`.
55+
The fix has been accepted upstream and will be in the cinder-csi-2.33 driver.
56+
57+
### Testing and utilities
58+
* 10-install-gateway-api-crd.sh: Install gateway API CRDs.
59+
You will need to reinstall Cilium with the right settings to get
60+
Gateway API functionality from it though.
61+
* 11-deploy-kube-dashboard.sh: Deploys the kubernetes dashboard into
62+
your workload cluster. It is exposed via a Loadbalancer.
63+
You need to use the generated token to authenticate.
64+
65+
### Cleanup
66+
* 55-remove-kube-dashboard.sh: Removes the kubernetes dashboard if deployed
67+
previously (11)
68+
* 56-cleanup-cluster.sh: Remove loadbalancers and persistent volumes from cluster.
69+
* 57-delete-cluster.sh: Remove cluster again.
70+
* 59-delete-kind.sh: Remove the kind cluster that we used as management cluster.
71+
5972

6073
### Moving management to a new cluster
6174
The bootstrap KinD management cluster (host) is not set up in a way

0 commit comments

Comments
 (0)