DevOps & Cloud Interview Questions and Answers - Part 1
Q5: The Infrastructure Blueprint (NodeClass) Concepts: EC2NodeClass, AMI, Subnet, SG, EBS SCENARIO: Security team mandates: specific AMI, private subnets only, custom security groups, and encrypted EBS. Where do you configure all this? What's the relationship between NodePool and NodeClass? WHAT THEY'RE TESTING: EC2NodeClass, AMI management, networking, separation of concerns THE ANSWER: • NODEPOOL = WHAT (requirements, constraints, behavior) • NODECLASS = HOW (infrastructure details for cloud provider) • EC2NodeClass configuration: apiVersion: karpenter.k8s.aws/v1 kind: EC2NodeClass spec: amiSelectorTerms: - id: ami-0123456789 # Specific AMI subnetSelectorTerms: - tags: { 'tier': 'private' } securityGroupSelectorTerms: - tags: { 'karpenter': 'enabled' } blockDeviceMappings: - encrypted: true • NodePool references NodeClass: spec: template: spec: nodeClassRef: name: secure-nodeclass → Separation allows: 1 NodeClass for many NodePools, easy AMI rotation
13 Folgen
Kommentare
0Sei die erste Person, die kommentiert
Melde dich jetzt an und werde Teil der DevOps & Cloud Interview Questions and Answers - Part 1-Community!