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

Add developer documentation for setting up Microk8s [skip ci] #3744

Merged
merged 4 commits into from
Oct 14, 2021

Conversation

andygrove
Copy link
Contributor

It took me quite a while to get Microk8s set up so I would like to add some notes to the developer documentation so that it doesn't take me so long next time I need to do this. Hopefully, it will save time for others as well.

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove andygrove added the documentation Improvements or additions to documentation label Oct 4, 2021
@andygrove andygrove added this to the Oct 4 - Oct 15 milestone Oct 4, 2021
@andygrove andygrove self-assigned this Oct 4, 2021
@tgravescs tgravescs changed the title Add developer documentation for setting up Microk8s Add developer documentation for setting up Microk8s [skip ci] Oct 4, 2021
@tgravescs
Copy link
Collaborator

build

```
$SPARK_HOME/bin/spark-submit \
--master k8s://https://kubernetes.default.svc.cluster.local:16443 \
--deploy-mode cluster \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious did you try shell with this? any special requirements there if you did?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not. I haven't used spark-shell with k8s, although it is supported.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spark-shell does not work with a remote driver (the cluster mode)

tgravescs
tgravescs previously approved these changes Oct 4, 2021
Copy link
Collaborator

@tgravescs tgravescs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks

Copy link
Collaborator

@sameerz sameerz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add yaml frontmatter for Jekyll at the top of the md file as follows:

---
layout: page
title: Setting up a Microk8s Environment
nav_order: 5
parent: Developer Overview
---

sameerz
sameerz previously approved these changes Oct 4, 2021
@sameerz
Copy link
Collaborator

sameerz commented Oct 4, 2021

build

## Enable DNS and GPU support

```bash
microk8s.enable dns
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without sudo I get

Insufficient permissions to access MicroK8s.
You can either try again with sudo or add the user gshegalov to the 'microk8s' group:

    sudo usermod -a -G microk8s gshegalov
    sudo chown -f -R gshegalov ~/.kube

The new group will be available on the user's next login.

maybe add / mention sudo for a simplified flow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added some notes about this

andygrove and others added 2 commits October 14, 2021 09:11
Co-authored-by: Gera Shegalov <gshegalov@nvidia.com>
Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove
Copy link
Contributor Author

build

@andygrove andygrove merged commit 2989682 into NVIDIA:branch-21.12 Oct 14, 2021
@andygrove andygrove deleted the microk8s-docs branch October 14, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants