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

Local Kubernetes Installment

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

Contents


More Related Answers

  • get current cluster kubectl
  • kubernetes auto complete
  • kubernetes get inside pod
  • kubernetes clusterip service template
  • kubernetes get deployments
  • kubernetes run bash on pod
  • kubernetes deployment
  • kubectl expose
  • change pv from released to available kubernetes
  • Creating a kubernetes service cluster
  • kubernetes pod
  • How to deploy a Kubernetes app
  • deploy Kubernetes dashboard into the cluster
  • what is kubernetes used for
  • kube cluster
  • Why (and when) you should use Kubernetes
  • kube cluster
  • kubernetes clusterip
  • extracting kubernetes podname from java
  • kubernetes get cluster
  • kubernetes evict
  • Use Kubespray to deploy a Production Ready Kubernetes Cluster
  • kubernetes create issuer
  • run temporary container kubernetes
  • minikube kubectl deployment use local image
  • Kubernetes configuration
  • Introducing Kubernetes runtime components
  • Terminating a Kubernetes cluster
  • Introducing how Kubernetes will be used
  • 10 Kubernetes Best Practices to Know

  • Local Kubernetes Installment

    0

    We are going to install and run Kubernetes on local environment.

    There are few options to run kubernetes on local like minikube, docker kubernetes and so on. We will follow the docker kubernetes installation.

    We should go to Docker Settings

    Docker support of Kubernetes

    Go to Docker Settings

    Kubernetes section

    Enable Kubernetes

    Declarative vs Imperative

    We are going to talk about Declarative vs Imperative.

    There are two basic ways to deploy to Kubernetes: imperatively, which is working on CLI with kubectl commands, or declaratively, by writing manifests and using kubectl apply.

    Kubernetes able to run both Declarative and Imperative way.

    Imperative Configuration

    The shortest way to deploy to Kubernetes is to use the kubectl run command.

    It said that run myapp with some image with 2 replicas, now!

    kubectl run myapp — image myrepo:mytag — replicas 2

    Declarative Configuration

    The power of Kubernetes is in its declarative API and controllers.

    You can just tell Kubernetes what you want, and it will know what to do.

    kubectl apply –f app.yaml

    You’ll just use kubectl apply and YAML (or JSON) manifests of the state to be saved by Kubernetes in etcd.

    Impritive — Declarative

    Impritive Commands

    kubectl run [container_name] — image=[image_name]

    kubectl port-forward [pod] [ports]

    kubectl create [resource]

    kubectl apply [resource] — create or modify resources

    So we will start with Imperative way of kubernetes commands. After that show how we can work with yaml files.

    Popularity 1/10 Helpfulness 1/10 Language shell
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on May 14 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.