Deploying Cloudera Service for Kubernetes on Platform9
- 1. Prerequisites
- 2. Log in to the installation node and prepare the CCF working directory
- 3. Verify CSK installer prerequisites
- 4. Configure the OpenStack application credential for CCF
- 5. Prepare the CSK cluster configuration
- 6. Run the CSK installer
- 7. Verify the CSK cluster
- 8. Open the OpenStack Dashboard (Horizon)
- Troubleshooting Reference
1. Prerequisites
continue from the completed CCC installation.
Get the paywall registry credential for accessing the following images. Save as /opt/ccc-installation/creds/paywall.txt.
| Category | Item | Registry |
| Cloudera Cloud Core | ccc-lcm | container.repository.cloudera.com/ccc-lcm/ccc-lcm:1.1.0-b50 |
| Cloudera Service for Kubernetes | openstack-cloud-controller-manager | container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cloud-controller-manager:2.34.0 |
| Cloudera Service for Kubernetes | cinder-csi-plugin | container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cinder-csi:2.34.0 |
| Cloudera Service for Kubernetes | kubelet-csr-approver | container.repository.cloudera.com/cloudera-thirdparty-helm/kubelet-csr-approver:1.2.14 |
| Cloudera Service for Kubernetes | metrics-server | container.repository.cloudera.com/cloudera-thirdparty-helm/metrics-server:3.13.0 |
| Cloudera Service for Kubernetes | csk-install | container.repository.cloudera.com/cloudera/taikun-csk-cluster-manager:1.0.0-b4 |
| Cloudera Cloud Factory | flux | container.repository.cloudera.com/cloudera/taikun/flux-latest:1.0.0-b23 |
| Cloudera Cloud Factory | ccf-install | container.repository.cloudera.com/cloudera/ccf-install:1.0.0-b6 |
| Anywhere Cloud | anywhere-cloud | container.repository.cloudera.com/cloudera-helm/awc-core/anywhere-cloud:1.0.0-b24 |
| Anywhere Cloud | Data Services Marketplace | container.repository.cloudera.com/cloudera/awc/marketplace:latest |
2. Log in to the installation node and prepare the CCF working directory
CCF runs on the same node as CCC. On node
feng-ccc1as ubuntu, switch toroot.mkdir -p /opt/ccc-installation/ccf/csk/{inputs,workspace} cd /opt/ccc-installation/ccf/csk
3. Verify CSK installer prerequisites
Verify podman and kubectl
podman --version kubectl version --client=trueVerify OpenStack access
/opt/ccc-installation/openstack-cli-admin token issue /opt/ccc-installation/openstack-cli-admin endpoint list
4. Configure the OpenStack application credential for CCF
cd /opt/ccc-installation/ccf/csk
CCF_APP_CREDENTIALS="/opt/ccc-installation/credentials/ccf-app-credentials.yaml"
test -f "${CCF_APP_CREDENTIALS}" || {
echo "Missing ${CCF_APP_CREDENTIALS}. Complete the CCC CCF resources stage first." >&2
exit 1
}
mapfile -t _ccf_app_cred < <(
python3 -c 'import yaml, pathlib, sys
d = yaml.safe_load(pathlib.Path(sys.argv[1]).read_text())
print(d["application_credential_id"], d["application_credential_secret"], d["auth_url"], sep="\n")' \
"${CCF_APP_CREDENTIALS}"
)
APP_CRED_ID="${_ccf_app_cred[0]}"
APP_CRED_SECRET="${_ccf_app_cred[1]}"
AUTH_URL="${_ccf_app_cred[2]}"
cat >inputs/openrc.sh <<EOF
unset \$(env | awk -F= '/^OS_/{print \$1}')
export OS_AUTH_TYPE=v3applicationcredential
export OS_AUTH_URL="${AUTH_URL}"
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=RegionOne
export OS_INTERFACE=public
export OS_APPLICATION_CREDENTIAL_ID="${APP_CRED_ID}"
export OS_APPLICATION_CREDENTIAL_SECRET="${APP_CRED_SECRET}"
export OS_CACERT=/etc/ssl/certs/ca-certificates.crt
EOF
chmod 0600 inputs/openrc.sh
ln -sfn /opt/ccc-installation/ccf/csk/inputs/openrc.sh /opt/ccc-installation/ccf/feng-ccf-openrc.sh
cat >/opt/ccc-installation/ccf/openstack-cli-feng-ccf <<'EOF'
#!/usr/bin/env bash
set -euo pipefail
exec /opt/ccc-installation/openstack-cli-with-rc /opt/ccc-installation/ccf/csk/inputs/openrc.sh "$@"
EOF
chmod 0755 /opt/ccc-installation/ccf/openstack-cli-feng-ccf
OPENSTACK_CCF_CLI="/opt/ccc-installation/ccf/openstack-cli-feng-ccf"
OPENSTACK_ADMIN_CLI="/opt/ccc-installation/openstack-cli-admin"
"${OPENSTACK_CCF_CLI}" token issue
CCF_TOKEN_PROJECT_ID="$("${OPENSTACK_CCF_CLI}" token issue -f json | jq -r '.project_id')"
CLOUDERA_PROJECT_ID="$("${OPENSTACK_ADMIN_CLI}" project show cloudera -f value -c id)"
test "${CCF_TOKEN_PROJECT_ID}" = "${CLOUDERA_PROJECT_ID}" \
&& echo "PASS application credential is scoped to cloudera"
5. Prepare the CSK cluster configuration
Check whether
external-netandexternal-subnetexist:/opt/ccc-installation/openstack-cli-admin network list --external /opt/ccc-installation/openstack-cli-admin network show external-net -f yaml /opt/ccc-installation/openstack-cli-admin subnet list --network external-netIf it does not exist, you need to create it manually.
/opt/ccc-installation/openstack-cli-admin network create external-net \ --external --share \ --provider-network-type flat \ --provider-physical-network provider /opt/ccc-installation/openstack-cli-admin subnet create external-subnet \ --network external-net \ --subnet-range 10.129.28.0/22 \ --gateway 10.129.28.1 \ --allocation-pool start=10.129.29.100,end=10.129.31.250 \ --no-dhcpRemove property
hw:mem_page_sizefor all flavors./opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size c04m08 /opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size c08m08 /opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size c08m16 /opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size c16m32 /opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size m1.amphora /opt/ccc-installation/openstack-cli-admin flavor unset \ --property hw:mem_page_size c02m04Create a configuration file named cluster_config.yaml.
PAYWALL_CREDS=/opt/ccc-installation/creds/paywall.txt CONTAINER_REGISTRY_USERNAME="$(sed -n '1p' "${PAYWALL_CREDS}")" CONTAINER_REGISTRY_PASSWORD="$(sed -n '2p' "${PAYWALL_CREDS}")" PREFIX="feng-csk" cd /opt/ccc-installation/ccf/csk cat >inputs/cluster_config.yaml <<EOF provider: openstack prefix: ${PREFIX} infra_dir: ./infra/openstack ssh_private_key_path: /inputs/id_ed25519 nodes: - name: control-plane-1 role: controlplane_one flavor: c08m08 - name: control-plane-2 role: controlplane flavor: c08m08 - name: control-plane-3 role: controlplane flavor: c08m08 - name: worker-1 role: worker flavor: c08m16 - name: worker-2 role: worker flavor: c08m16 - name: worker-3 role: worker flavor: c08m16 oci: registry: container.repository.cloudera.com repo_prefix: cloudera/taikun/csk-downloader tag: 1.0.0-b4 username: ${CONTAINER_REGISTRY_USERNAME} password: ${CONTAINER_REGISTRY_PASSWORD} artifacts: - image: cloudera/taikun/csk-k8s-package tag: "1.0.0-b4" sha256: "ef064468ff45c3d9d372aefd49178a4d0af3ab91e3a72946fb6dc451e635fdc4" - image: cloudera/taikun/csk-agent tag: "1.0.0-b4" sha256: "21b0f74a53a433ceb697977e932eb4223e23f9700b99801ea34f5d753241911b" openstack: external_network_name: external-net image_name: taikun-ubuntu-22 subnet_cidr: 192.168.101.0/24 network_mtu: 1450 dns_nameservers: - 10.129.80.140 - 172.17.64.15 registries: - host: container.repository.cloudera.com username_env: CSK_CLOUDERA_REGISTRY_USER username_val: ${CONTAINER_REGISTRY_USERNAME} password_env: CSK_CLOUDERA_REGISTRY_PASS password_val: ${CONTAINER_REGISTRY_PASSWORD} helm: - repository: "oci://container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cloud-controller-manager" release_name: "openstack-cloud-controller-manager" tag: "2.34.0" set_values: - "imagePullSecrets[0].name=csk-registry-creds" - "cluster.name=${PREFIX}" - "image.repository=container.repository.cloudera.com/cloudera_thirdparty/provider-os/openstack-cloud-controller-manager" - "image.tag=v1.35.0" - "secret.enabled=true" - "secret.create=false" - "secret.name=cloud-config" - repository: "oci://container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cinder-csi" release_name: "cinder-csi-plugin" tag: "2.34.0" set_values: - "imagePullSecrets[0].name=csk-registry-creds" - "csi.attacher.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-attacher" - "csi.attacher.image.tag=v4.10.0" - "csi.provisioner.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-provisioner" - "csi.provisioner.image.tag=v5.3.0" - "csi.snapshotter.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-snapshotter" - "csi.snapshotter.image.tag=v8.4.0" - "csi.resizer.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-resizer" - "csi.resizer.image.tag=v1.14.0" - "csi.livenessprobe.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/livenessprobe" - "csi.livenessprobe.image.tag=v2.17.0" - "csi.nodeDriverRegistrar.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-node-driver-registrar" - "csi.nodeDriverRegistrar.image.tag=v2.15.0" - "csi.plugin.image.repository=container.repository.cloudera.com/cloudera_thirdparty/provider-os/cinder-csi-plugin" - "csi.plugin.image.tag=v1.35.0" - "secret.enabled=true" - "secret.name=cloud-config" - "secret.create=false" - "storageClass.enabled=false" - repository: "oci://container.repository.cloudera.com/cloudera-thirdparty-helm/kubelet-csr-approver" release_name: "kubelet-csr-approver" tag: "1.2.14" wait: true set_values: - "imagePullSecrets[0].name=csk-registry-creds" - "providerRegex=^${PREFIX}-.*$" - "providerIpPrefixes[0]=192.168.101.0/24" - "bypassDnsResolution=true" - "image.repository=container.repository.cloudera.com/cloudera_thirdparty/postfinance/kubelet-csr-approver" - "image.tag=v1.2.14" - "replicas=1" - repository: "oci://container.repository.cloudera.com/cloudera-thirdparty-helm/metrics-server" release_name: "metrics-server" tag: "3.13.0" set_values: - "imagePullSecrets[0].name=csk-registry-creds" - "image.repository=container.repository.cloudera.com/cloudera_thirdparty/metrics-server/metrics-server" - "image.tag=v0.8.0" - "args[0]=--kubelet-certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt" EOFIf the installation fails, you will need to perform a manual installation.
export KUBECONFIG=/opt/ccc-installation/ccf/ccf-kubeconfig.yaml helm install openstack-cloud-controller-manager \ oci://container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cloud-controller-manager \ --version 2.34.0 \ -n kube-system \ --wait \ --timeout 8m \ --set 'imagePullSecrets[0].name=csk-registry-creds' \ --set cluster.name=feng-csk \ --set image.repository=container.repository.cloudera.com/cloudera_thirdparty/provider-os/openstack-cloud-controller-manager \ --set image.tag=v1.35.0 \ --set secret.enabled=true \ --set secret.create=false \ --set secret.name=cloud-config helm install cinder-csi-plugin \ oci://container.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cinder-csi \ --version 2.34.0 \ -n kube-system \ --wait \ --timeout 10m \ --set 'imagePullSecrets[0].name=csk-registry-creds' \ --set csi.attacher.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-attacher \ --set csi.attacher.image.tag=v4.10.0 \ --set csi.provisioner.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-provisioner \ --set csi.provisioner.image.tag=v5.3.0 \ --set csi.snapshotter.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-snapshotter \ --set csi.snapshotter.image.tag=v8.4.0 \ --set csi.resizer.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-resizer \ --set csi.resizer.image.tag=v1.14.0 \ --set csi.livenessprobe.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/livenessprobe \ --set csi.livenessprobe.image.tag=v2.17.0 \ --set csi.nodeDriverRegistrar.image.repository=container.repository.cloudera.com/cloudera_thirdparty/sig-storage/csi-node-driver-registrar \ --set csi.nodeDriverRegistrar.image.tag=v2.15.0 \ --set csi.plugin.image.repository=container.repository.cloudera.com/cloudera_thirdparty/provider-os/cinder-csi-plugin \ --set csi.plugin.image.tag=v1.35.0 \ --set secret.enabled=true \ --set secret.name=cloud-config \ --set secret.create=false \ --set storageClass.enabled=false helm install kubelet-csr-approver \ oci://container.repository.cloudera.com/cloudera-thirdparty-helm/kubelet-csr-approver \ --version 1.2.14 \ -n kube-system \ --wait \ --timeout 8m \ --set 'imagePullSecrets[0].name=csk-registry-creds' \ --set-string 'providerRegex=^feng-csk-.*$' \ --set providerIpPrefixes[0]=192.168.101.0/24 \ --set bypassDnsResolution=true \ --set image.repository=container.repository.cloudera.com/cloudera_thirdparty/postfinance/kubelet-csr-approver \ --set image.tag=v1.2.14 \ --set replicas=1 helm install metrics-server \ oci://container.repository.cloudera.com/cloudera-thirdparty-helm/metrics-server \ --version 3.13.0 \ -n kube-system \ --wait \ --timeout 8m \ --set 'imagePullSecrets[0].name=csk-registry-creds' \ --set image.repository=container.repository.cloudera.com/cloudera_thirdparty/metrics-server/metrics-server \ --set image.tag=v0.8.0 \ --set args[0]=--kubelet-certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crtVerify whether the installation was successful
kubectl -n kube-system get ds openstack-cloud-controller-manager kubectl -n kube-system get pods -o wide | grep openstack-cloud-controller-manager helm -n kube-system status cinder-csi-plugin kubectl -n taikun get pvc -w kubectl -n kube-system get deployment openstack-cinder-csi-controllerplugin kubectl -n kube-system get ds openstack-cinder-csi-nodeplugin kubectl get --raw='/readyz?verbose' \ --request-timeout=20s kubectl get csrInstall the tofu CLI
cat > /opt/ccc-installation/tofu-cli <<EOF #!/usr/bin/env bash set -euo pipefail workspace=/opt/ccc-installation/ccf/csk/workspace/infra/openstack image=container.repository.cloudera.com/cloudera/taikun-csk-cluster-manager:1.0.0-b4 exec podman run --rm --network host \ -v "$workspace:$workspace" -w "$workspace" \ --entrypoint /usr/local/bin/tofu "$image" "$@" EOF
6. Run the CSK installer
Start a tmux session
tmux new -s csk-install cd /opt/ccc-installation/ccf/csk CSK_IMAGE="container.repository.cloudera.com/cloudera/taikun-csk-cluster-manager:1.0.0-b4" mapfile -t _registry_cred < <( python3 -c 'import yaml, pathlib, sys d = yaml.safe_load(pathlib.Path(sys.argv[1]).read_text()) print(d["oci"]["username"], d["oci"]["password"], sep="\n")' \ inputs/cluster_config.yaml ) REGISTRY_USERNAME="${_registry_cred[0]}" REGISTRY_PASSWORD="${_registry_cred[1]}" echo "${REGISTRY_PASSWORD}" | podman login container.repository.cloudera.com -u "${REGISTRY_USERNAME}" --password-stdin podman run --rm -it \ -e HUMAN=true \ -e OPENRC_PATH=/inputs/openrc.sh \ -e CLUSTER_CONFIG_PATH=/inputs/cluster_config.yaml \ -v /etc/ssl/certs:/etc/ssl/certs:ro \ -v "$PWD/workspace":/workspace:z \ -v "$PWD/inputs":/inputs:ro,z \ -v /root/.ssh/id_ed25519:/inputs/id_ed25519:ro,z \ -v /root/.ssh/id_ed25519.pub:/inputs/id_ed25519.pub:ro,z \ "${CSK_IMAGE}" create
7. Verify the CSK cluster
Check the status of the CSK cluster.
cd /opt/ccc-installation/ccf/csk export KUBECONFIG=/opt/ccc-installation/ccf/csk/workspace/infra/kubeconfig.yaml kubectl cluster-info kubectl get nodes -o wide kubectl get pods -ASave the CSK kubeconfig
cp /opt/ccc-installation/ccf/csk/workspace/infra/kubeconfig.yaml /opt/ccc-installation/ccf/ccf-kubeconfig.yaml chmod 0600 /opt/ccc-installation/ccf/ccf-kubeconfig.yaml export KUBECONFIG=/opt/ccc-installation/ccf/ccf-kubeconfig.yaml kubectl get nodesVerify the CSK load balancer cloud config
- The CSK installer creates the
cloud-configsecret inkube-system. This is required for OpenStack load balancer integration.
export KUBECONFIG=/opt/ccc-installation/ccf/ccf-kubeconfig.yaml kubectl get secret cloud-config -n kube-system- The CSK installer creates the
8. Open the OpenStack Dashboard (Horizon)
- Confirm that the 6 instances are already active.

Troubleshooting Reference
issue 1. Requested instance NUMA topology cannot fit the given host NUMA topology
Errors
kubectl -n openstack logs \ -l application=nova,component=conductor \ --all-containers \ --since=30m \ --max-log-requests=10 \ --prefix \ | grep -E -C 3 \ 'a8382f7c-d12c-4182-b166-f8a7dbae0313|2d6868ad-2446-4802-8975-e0a33f1bbcd8'Two of these UUIDs correspond to the failed `worker-1` and `bastion` instances. The logs contain an "Error from last host" entry, with a traceback that includes: nova.exception.ComputeResourcesUnavailable: Insufficient compute resources: Requested instance NUMA topology cannot fit the given host NUMA topology- Root Cause
- The flavor requires
hw:mem_page_size='1GB', but nodefeng-ccc1has no 1 GiB HugePages available and therefore cannot satisfy this requirement.
- The flavor requires
- Solution
- Remove property
hw:mem_page_sizefor all flavors. - Please see Prepare the CSK cluster configuration
- Remove property