AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
k8s NodeSet
1. K8s NodeSetLet a Kubernetes cluster manage its worker nodes by
itself
2. Company: Loodse GmbH
Focus: Container and Cloud Native technologies
Product: Kubermatic
Headquarter: Hamburg, Germany
Partner: Google Cloud Platform Partner
Member of CNCF and Linux Foundation
Loodse
4. Current approach
• Needs Ops to scale the cluster
• No generic approach
• Each implementation needs
specific knowledge
• Scaling of new nodes needs
external dependencies
• No generic node auto scaling
• Huge effort to deploy k8s on a
different platform
Node Node Node
Master
Node
5. PersistentVolumes
A higher-level storage abstraction
• insulation from any one cloud environment
Admin provisions them, users claim them
Independent lifetime from their consumers
Dynamically “scheduled” and managed
Pod
Claim
6. Native integration
• Dev can scale the cluster
• Pets vs cattle for nodes
• Implementation of generic auto
scaling possible
• Very similar setup for different
provider
kubectl create nodes
Node Node Node
Master
Node
7. Nodes
Current node lifecycle
• Event executed -> node resource get’s created
General k8s resource lifecycle
• Resource get’s created -> event executed
9. NodeController
Watch for new Node resources
Provision the machine at the cloud provider
• Machine joins the cluster
• Kubelet updates the Node resource
Deletes the machine at the cloud provider
Node
Resources
10. NodeClass
Cloudprovider & OS specific details
Spec
• Cloudprovider credentials
• Machine type (e.g. t2.medium)
• Provisioning
• Files e.g systemd unit, ssh keys
• ssh commands
Node
Resources
Class
12. NodeSet
Group of similar nodes
Integration with node autoscaler
Spec:
• Replicas -> number of nodes
• NodeController
• NodeClass Node
Res
Class
Node
Res
Node
Res