🦲
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
  • Deploying nginx application
  • Accessing nginx pod
  • Troubleshooting
  • Removing nginx deployment

Was this helpful?

  1. knowledge
  2. it
  3. clusters

deploying nginx

Deploying nginx sample application

Previousdeploying bootcampNextdeploying jacamo-rest

Last updated 5 years ago

Was this helpful?

, pronounced engine x, is an HTTP and reverse proxy server

Deploying nginx application

  • Deploying demo: $ microk8s.kubectl create deployment nginx --image=nginx

  • Get all pods: $ microk8s.kubectl get pods

Accessing nginx pod

  • Run $ microk8s.kubectl get pods copy the name of the pod and set the variable manually $ export POD_NAME=nginx-XXXXX

  • Enabling proxy access to debug pods $ microk8s.kubectl proxy

    • Get information from the created pod (from another terminal) $ curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/

  • Get environment variables $ microk8s.kubectl exec $POD_NAME -- env

  • Run terminal of the pod $ microk8s.kubectl exec -ti $POD_NAME bash

    • Type exit to leave the section

Troubleshooting

  • Describe pod $ microk8s.kubectl describe pod/$POD_NAME

Removing nginx deployment

  • Removing $ microk8s.kubectl delete deployment.apps/nginx

Nginx
.