Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We add the flag
--exoscale-csi
to theexo compute sks create
command. If set, a cluster with the CSI addon will be created. Unlike theCCM
andmetrics-server
addons which have to be explicitly disabled with a--no-...
flag, the CSI addon has to be explicitly enabled because for some users may not need it.Checklist
(For exoscale contributors)
Testing
❯ ./bin/exo compute sks create --exoscale-csi --zone ch-gva-2 --nodepool-size 1 my-csi-test-cluster ❯ ./bin/exo compute sks --zone ch-gva-2 show my-csi-test-cluster ┼───────────────┼──────────────────────────────────────────────────────────────────┼ │ SKS CLUSTER │ │ ┼───────────────┼──────────────────────────────────────────────────────────────────┼ │ ID │ 7b4c6f18-58e0-4013-a351-4c9d69d4364c │ │ Name │ my-csi-test-cluster │ │ Description │ │ │ Zone │ ch-gva-2 │ │ Creation Date │ 2024-02-12 17:10:35 +0000 UTC │ │ Auto-upgrade │ false │ │ Endpoint │ https://7b4c6f18-58e0-4013-a351-4c9d69d4364c.sks-ch-gva-2.exo.io │ │ Version │ 1.29.1 │ │ Service Level │ pro │ │ CNI │ calico │ │ Add-Ons │ exoscale-cloud-controller │ │ │ exoscale-container-storage-interface │ │ │ metrics-server │ │ State │ running │ │ Labels │ n/a │ │ Nodepools │ n/a │ ┼───────────────┼──────────────────────────────────────────────────────────────────┼ ./bin/exo compute sks --zone ch-gva-2 nodepool add --size 2 my-csi-test-cluster my-csi-test-cluster-pool ❯ KUBECONFIG=kubeconfig kubectl get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-kube-controllers-558d465845-tcgb8 1/1 Running 0 18m kube-system calico-node-q4vps 1/1 Running 0 7m2s kube-system calico-node-rvbrg 1/1 Running 0 7m3s kube-system coredns-6f5866f786-f66ft 1/1 Running 0 17m kube-system coredns-6f5866f786-nvfvx 1/1 Running 0 17m kube-system exoscale-csi-controller-67c9d7ddb-hjsff 7/7 Running 0 17m kube-system exoscale-csi-controller-67c9d7ddb-pmg4z 7/7 Running 0 17m kube-system exoscale-csi-node-9plgw 3/3 Running 0 6m48s kube-system exoscale-csi-node-c8sbg 3/3 Running 0 6m21s kube-system konnectivity-agent-67467cf7b6-j4zmk 1/1 Running 0 17m kube-system konnectivity-agent-67467cf7b6-n5m95 1/1 Running 0 17m kube-system kube-proxy-77lq4 1/1 Running 0 7m3s kube-system kube-proxy-v5cb7 1/1 Running 0 7m2s kube-system metrics-server-8499c9d7ff-qpcxg 1/1 Running 0 17m