Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Kubernetes deployment problem with master slave:

Sumit Rawal answered on May 6, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • kubectl scale deployment
  • kubectl rollback deployment
  • kubernetes get deployments
  • kubernetes deployment
  • kube allow pod deployment on master node
  • How to deploy a Kubernetes app
  • kubectl deployment get image
  • expose deployment k8
  • kubectl create deploy
  • Use Kubespray to deploy a Production Ready Kubernetes Cluster
  • kubernetes create issuer
  • minikube kubectl deployment use local image
  • two tier deployment manifest kubernetes backend
  • kubectl confirm that pods are running
  • What is the Containerized Deployment process in Kubernetes?
  • How does Kubernetes simplify containerized Deployment?
  • Wait for the Deployment objects and their Pods to be available
  • Excluding Kubernetes resources from deployment
  • Kubernetes Deployment Pipeline:
  • Which of the following is the correct command to create kubernetes components like deployments, services, configmaps using a file?
  • Hands-on: Deploy CockroachDB in a Single Kubernetes Cluster with Minikube – Task List
  • Hands-on: Deploy Kafka in a Single Kubernetes Cluster with Minikube – Task List
  • What is a Pod in Kubernetes, and why is it the smallest deployable unit?
  • What is a Kubernetes Deployment, and why is it used in container orchestration?

  • Kubernetes deployment problem with master slave:

    0

    . Let us now go back to the world of Kubernetes and containers and try to deploy this setup.

    In the Kubernetes world, each of these instances, including the master and slaves are a POD part of a

    deployment.

    2.

    In step 1, we want the master to come up first and then the slaves. And in case of the slaves we want slave 1

    to come up first,

    3.

    perform initial clone of data from the master, and we want slave 2 to come up next and clone data from

    slave 1.

    4.

    5. With deployments you can’t guarantee that order.

    6. With deployments all pods part of the deployment come up at the same time.

    7. So the first step can’t be implemented with a Deployment.

    8. As we have seen while working with deployments the pods come up with random names.

    9. So that won’t help us here. Even if we decide to designate one of these pods as the master,

    10. and use it’s name to configure the slaves,

    if that POD crashes and the deployment creates a new pod in it’s place, it’s going to come up with a

    completely new pod name.

    11.

    12. And now the slaves are pointing to an address that does not exist.

    13. And because of all of these, the remaining steps can’t be executed.  

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 06 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.