🦲
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
  • Exposing ports
  • Forwarding connections
  • Opening terminal
  • Troubleshooting

Was this helpful?

  1. knowledge
  2. it
  3. clusters

deploying jacamo-rest

Previousdeploying nginxNextgrafana

Last updated 5 years ago

Was this helpful?

Deploying cleberjamaral/jacamo-rest-run, available at .

Deploying

  • Deploying cleberjamaral/jacamo-rest-run which is available in $ microk8s.kubectl create deployment jacamo-rest --image=cleberjamaral/jacamo-rest-run

  • Get pod name $ export POD_NAME=$(microk8s.kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')

Exposing ports

  • Exposing $ microk8s.kubectl expose deployment/jacamo-rest --type="NodePort" --port 3271,3272,3273,8080

  • Check IP provided for the jacamo-rest created service $ microk8s.kubectl get services

  • Performing a simple test $ curl http://provided_IP:8080/overview

Forwarding connections

  • port-forward option needs .

  • In , is seems a port forward of host to the service/deployment/pod should be a good solution but in the first tests it is not working yet. I have tried $ microk8s.kubectl port-forward deployment.apps/jacamo-rest 8080:8080

  • However, what is working is directly through socat $ socat TCP-LISTEN:8080,fork,reuseaddr TCP:provided_IP:8080

Opening terminal

  • Open terminal $ microk8s.kubectl exec -ti $POD_NAME -- bash

Troubleshooting

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

  • Get logs $ microk8s.kubectl logs pod/$POD_NAME

docker hub
docker hub
socat installed on the host
theory