How to deploy a node.js with redis on kubernetes?

前端 未结 5 2080
长发绾君心
长发绾君心 2021-01-12 18:57

I have a very simple node.js application (HTTP service), which \"talks\" to redis. I want to create a deployment and run it with minikube.

From my understanding, I n

5条回答
  •  轮回少年
    2021-01-12 19:46

    1. yes you need a separete deployement and service for redis

    2. use kubernetes service discovery , should be built in , KubeDNS , CoreDNS

    3. use readniness and liveness probes

    Yes , you can write a single big yaml file to describe all the deployments and services. then:

    kubectl apply -f yourfile.yml

    or you can place the yaml in separate files and then do the :

     kubectl apply -f dir/
    

提交回复
热议问题