We should remove the basic-auth-file argument and move any entries to the tokens file.
@ktsakalozos I believe this is good issue to start with for beginner like me. Do you mind if I take this issue ?
Thank you for volunteering @vbmade2000. Yes, it is a good first issue to get you familiar with the code. Here are some notes you might find helpful.
/var/snap/microk8s/current/args upon installation. You should remove the basic-auth-file entry (https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/default-args/kube-apiserver#L4) from there.Do not hesitate to reach out in case you need help.
Many thanks.
Sounds good. Thanks.
Will check and reach out to you in case of query.
@ktsakalozos Can you please point me to the architectural docs for microk8s ? I checked https://microk8s.io/docs/ but looks like it shows usage mostly. I want to understand how it sets up a single node k8s cluster.
@vbmade2000 there is no architectural doc. To understand how we setup a cluster, fist look at the basics of snaps [1] (MicroK8s is a snap package). Then read through the daemons and commands defined in spancraft.yaml [2]. The commands and daemons are wrappers [3] around the (k8s) binaries we package.
The single node cluster is straight forward as the daemons start with the default arguments [4] and the certificates generated during installation [5, 6]. The case of forming a cluster is a bit more involving so a few python scripts are used [7].
You are however on point, we need to put more time and effort on the dev docs.
[1] https://tutorials.ubuntu.com/tutorial/create-your-first-snap#0
[2] https://github.com/ubuntu/microk8s/blob/master/snapcraft.yaml#L19
[3] https://github.com/ubuntu/microk8s/tree/master/microk8s-resources/wrappers
[4] https://github.com/ubuntu/microk8s/tree/master/microk8s-resources/default-args
[5] https://github.com/ubuntu/microk8s/blob/master/snap/hooks/install
[6] https://github.com/ubuntu/microk8s/blob/master/snap/hooks/configure
[7] https://github.com/ubuntu/microk8s/tree/master/scripts/cluster
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
@vbmade2000 there is no architectural doc. To understand how we setup a cluster, fist look at the basics of snaps [1] (MicroK8s is a snap package). Then read through the daemons and commands defined in spancraft.yaml [2]. The commands and daemons are wrappers [3] around the (k8s) binaries we package.
The single node cluster is straight forward as the daemons start with the default arguments [4] and the certificates generated during installation [5, 6]. The case of forming a cluster is a bit more involving so a few python scripts are used [7].
You are however on point, we need to put more time and effort on the dev docs.
[1] https://tutorials.ubuntu.com/tutorial/create-your-first-snap#0
[2] https://github.com/ubuntu/microk8s/blob/master/snapcraft.yaml#L19
[3] https://github.com/ubuntu/microk8s/tree/master/microk8s-resources/wrappers
[4] https://github.com/ubuntu/microk8s/tree/master/microk8s-resources/default-args
[5] https://github.com/ubuntu/microk8s/blob/master/snap/hooks/install
[6] https://github.com/ubuntu/microk8s/blob/master/snap/hooks/configure
[7] https://github.com/ubuntu/microk8s/tree/master/scripts/cluster