I am trying to do everything I usually do with manifests and helm charts with Juju as much as possible.
To clarify. I want to set up the Storage Class in Kubernetes. And I have challenged myself to do it only with Juju. As far as I can see the charmed documentation shows how to do that. I just could not get that to work yet.
By the time I am done running something like
juju deploy -n 3 ceph-mon
juju deploy -n 3 ceph-osd --storage osd-devices=32G,2 --storage osd-journals=8G,1
juju add-relation ceph-osd ceph-mon
juju add-relation ceph-mon:admin kubernetes-master
juju add-relation ceph-mon:client kubernetes-master
per the docs it should all be done.
kubectl get sc will show storage classes (maybe with no default but I can set that with kubectl if I have to…)
Do you want to set up your k8s cluster so that it can provision storage as needed for k8s workloads deployed by Juju to the cluster?
Yes. I am ok with the simplest version of this to start.
I also prefer to later have dynamic provisioning of Persistant Volumes set up. I have used GlusterFS or Ceph for this in the past. When I make a Persistant Volume Claim it will generate a new suitable Persistant Volume with a UUID.
Or are you asking about how to set up the Storage Class itself with a suitable provisioner on MAAS?
Yes I want this.
I may also need it to successfully
juju add-k8s here
dw@maas-effect:~$ juju add-k8s
ERROR missing k8s name.
dw@maas-effect:~$ juju add-k8s charmed
ERROR Juju needs to know what storage class to use to provision workload and operator storage.
Run add-k8s again, using --storage=<name> to specify the storage class to use.
dw@maas-effect:~$ juju add-k8s charmed --storage=nostorageclassyet
ERROR storage class "nostorageclassyet" not found