Kubernetes Classroom Series – 14/Oct/2019

Controllers

  • Controllers are part of Workload APIs
  • Controllers can maintain desired state

Replication Controller.

  • Replication controller can replicate pods.
  • Desired State would be number of pods
  • Gives Self-Healing Capability to K8S cluster

Writing Replication Controller Manifest YAML

  • In Replication Controller’s spec we would have information of POD.
  • Refer API Reference from here
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: tomcat-rc
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: tomcat
    spec:
      containers:
        - image: tomcat:8
          name: tomcat
          ports:
            - containerPort: 8080
              protocol: TCP

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Network Integration by Acurax Social Media Branding Company
Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube