🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrônica digital
      • Conversão decimal para binário
      • Conversão binário para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • Installing microk8s and setting up your linux user
  • Accessing master pod through http
  • Stopping and starting kubernetes
  • Troubleshooting
  • Removing

Was this helpful?

  1. knowledge
  2. it
  3. clusters

installing kubernetes

Installing a kubernetes by microk8s

PreviousclustersNextdeploying bootcamp

Last updated 5 years ago

Was this helpful?

Installing microk8s and setting up your linux user

  1. Installing microk8s $ sudo snap install microk8s --classic

  2. Adding permission your user to microk8s group $ sudo usermod -a -G microk8s $USER

  3. Adding permission for your user $ sudo chown -f -R $USER ~/.kube

  4. Logging again $ su - $USER

  5. Check if microk8s was installed $ sudo snap list

  6. More details about the installation $ sudo snap info microk8s

  7. Check if microk8s is running $ microk8s.status --wait-ready

  8. Check if the node is READY $ microk8s.kubectl get nodes

    • If it is PENDING it is worth to check if the specific SO needs some extra configuration like .

  9. Optionally you can create a link to kubectl $ sudo snap alias microk8s.kubectl kubectl

Accessing master pod through http

  • Proxy access to pods to debug them $ microk8s.kubectl proxy

  • From another terminal: $ curl http://localhost:8001/version

Stopping and starting kubernetes

  • Stopping microk8s $ microk8s.stop

  • Starting microk8s $ microk8s.start

Troubleshooting

  • Inspecting microk8s $ microk8s.inspect

  • Resetting microk8s $ microk8s.reset

Removing

  • To remove microk8s: $ sudo snap remove microk8s

Debian Jessie