Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Konnectivity service on microk8s #4897

Open
lloiacono-fuji opened this issue Feb 21, 2025 · 2 comments
Open

Set up Konnectivity service on microk8s #4897

lloiacono-fuji opened this issue Feb 21, 2025 · 2 comments

Comments

@lloiacono-fuji
Copy link

https://kubernetes.io/docs/tasks/extend-kubernetes/setup-konnectivity/

I'm trying to setup konnectivity on microk8s.
Can someone tell me if konnectivity is compatible?

According to the kubernetes guide, in point 4, it requires you to make changes to kube-apiserver on volumeMounts:

  1. If you use UDS connection, add volumes config to the kube-apiserver:
spec:
  containers:
    volumeMounts:
    - name: konnectivity-uds
      mountPath: /etc/kubernetes/konnectivity-server
      readOnly: false
  volumes:
  - name: konnectivity-uds
    hostPath:
      path: /etc/kubernetes/konnectivity-server
      type: DirectoryOrCreate

Does anyone know if this setup is compatible with microk8s?

Thanks in advance!

@eaudetcobello
Copy link
Contributor

eaudetcobello commented Feb 25, 2025

Hi @lloiacono-fuji ,

You can add the --egress-selector-config-file to /var/snap/microk8s/current/args/kube-apiserver and restart microk8s.

@lloiacono-fuji
Copy link
Author

Hi @eaudetcobello ,
the --egress-selector-config-file to /var/snap/microk8s/current/args/kube-apiserver satisfies point 3

After, point 4 says to configure volumes on apiserver

  1. If you use UDS connection, add volumes config to the kube-apiserver:
spec:
  containers:
    volumeMounts:
    - name: konnectivity-uds
      mountPath: /etc/kubernetes/konnectivity-server
      readOnly: false
  volumes:
  - name: konnectivity-uds
    hostPath:
      path: /etc/kubernetes/konnectivity-server
      type: DirectoryOrCreate

Do we need to bypass some point in the documentation?
Do you have documentation for setting up microk8s with konnectivity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants