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

Introducing Kubernetes API objects

Pragya Keshap answered on February 17, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • kubernetes list api resources
  • kubernetes clusterip service template
  • kubernetes get services
  • kubectl top metrics api not available
  • accessing kube api from a pod
  • kubernetes check api version of some kind
  • kubernetes objects
  • kubectl config kubernetes dashboard
  • api in kubernetes
  • kubernetes kustomize kubectl
  • kubernetes web-ui-dashboard
  • deploy Kubernetes dashboard into the cluster
  • create service with endpoint kubernetes
  • What is the role of kube-apiserver and kube-scheduler?
  • kubernetes kustomize kubectl
  • kubernetes kustomize kubectl
  • kubernetes kustomize kubectl
  • kubernetes kustomize kubectl
  • kubernetes kustomize kubectl
  • kubernetes kustomize kubectl
  • Introducing Kubernetes runtime components
  • Introducing how Kubernetes will be used
  • Kubernetes security best practices
  • 4 Kubernetes Monitoring Best Practices
  • 10 Kubernetes Best Practices to Know
  • What is a Kubernetes API Group?
  • Conclusion: A Complete Guide to Kubernetes

  • Introducing Kubernetes API objects

    0

    Node: A node represents a server, virtual or physical, in the cluster.

    Pod: A Pod represents the smallest possible deployable component in Kubernetes, consisting of one or more co-located containers. The containers share the same IP address and port range. This means that containers in the same Pod instance can talk to each other over localhost, but need to be aware of potential port collisions. Typically, a Pod consists of one container, but there are use cases for extending the functionality of the main container by running the second container in a Pod. In Chapter 18, Using a Service Mesh to Improve Observability and Management, a second container will be used in the Pods, running a sidecar that makes the main container join the service mesh.

    Deployment: A Deployment is used to deploy and upgrade Pods. The Deployment objects hand over the responsibility of creating and monitoring the Pods to a ReplicaSet. When creating a Deployment for the first time, the work performed by the Deployment object is not much more than creating the ReplicaSet object. When performing a rolling upgrade of a Deployment, the role of the Deployment object is more involved.

    ReplicaSet: A ReplicaSet is used to ensure that a specified number of Pods are running at all times. If a Pod is deleted, it will be replaced with a new Pod by the ReplicaSet.

    Service: A Service is a stable network endpoint that you can use to connect to one or multiple Pods. A Service is assigned an IP address and a DNS name in the internal network of the Kubernetes cluster. The IP address of the Service will stay the same for the lifetime of the Service. Requests that are sent to a Service will be forwarded to one of the available Pods using round robin-based load balancing. By default, a Service is only exposed inside the cluster using a cluster IP address. It is also possible to expose a Service outside the cluster, either on a dedicated port on each node in the cluster or – even better – through an external load balancer that is aware of Kubernetes; that is, it can automatically provision a public IP address and/or DNS name for the Service. Cloud providers that offer Kubernetes as a service, in general, support this type of load balancer.

    Ingress: Ingress can manage external access to Services in a Kubernetes cluster, typically using HTTP or HTTPS. For example, it can route traffic to the underlying Services based on URL paths or HTTP headers such as the hostname. Instead of exposing a number of Services externally, either using node ports or through load balancers, it is, in general, more convenient to set up an Ingress in front of the Services. To handle the actual communication defined by the Ingress objects, an Ingress controller must be running in the cluster. We will see an example of an Ingress controller as we proceed.

    Namespace: A namespace is used to group and, on some levels, isolate resources in a Kubernetes cluster. The names of resources must be unique in their namespaces, but not between namespaces.

    ConfigMap: A ConfigMap is used to store configuration that's used by containers. ConfigMaps can be mapped into a running container as environment variables or files.

    Secret: This is used to store sensitive data used by containers, such as credentials. Secrets can be made available to containers in the same way as ConfigMaps. Anyone with full read access to the API server can access the values of created secrets, so they are not as safe as the name might imply.

    DaemonSet: This ensures that one Pod is running on each node in a set of nodes in the cluste

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 17 2023
    Pragya Keshap
    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.