NCP-CN practice question 19 of 25

[Prepare the Environment for an NKP Deployment] A Platform Engineer has been tasked with building a custom image for the deployment of NKP management…

Full set: 108 questions
[Prepare the Environment for an NKP Deployment] A Platform Engineer has been tasked with building a custom image for the deployment of NKP management and worker nodes. The engineer needs to ensure that the proper package versions are used when creating these images. The security team has only authorized version 1.30.5 of Kubernetes and version 1.7.22 of containerd. Where should the engineer go to verify that this is the version being used when building the custom image?
Answer options
A: config/pulumi/vars/pulumi.kib.config
B: terraform/vars/default/terraform.tfvars
C: ansible/group_vars/all/defaults.yaml Correct answer
D: The custom image's .env file
Correct Answer:
C. ansible/group_vars/all/defaults.yaml
Explanation

The Nutanix Kubernetes Platform (NKP) custom image creation process utilizes Packer and Ansible. Packer builds the machine image, while Ansible playbooks are used to install and configure the software packages within that image. The ansible/groupvars/all/defaults.yaml file within the nutanix-kps-image-builder repository is the standard location where default variables, including the specific versions for Kubernetes (k8sversion) and containerd (containerdversion), are defined. An engineer must modify or verify the values in this file to ensure the correct package versions are used during the image build.

Why Incorrect

A. config/pulumi/vars/pulumi.kib.config: This path relates to Pulumi, an Infrastructure as Code (IaC) tool. While used by NKP, it is not the tool responsible for defining package versions inside the OS image.
B. terraform/vars/default/terraform.tfvars: This file contains variables for Terraform, which provisions the infrastructure (VMs, networks). It does not control the software versions installed within the OS image.
D. The custom image's .env file: A .env file is not a standard part of the NKP image build process for defining component versions. These versions are build-time parameters, not runtime environment variables in this context.

References

1. Nutanix Kubernetes Platform Administration Guide: The section "Creating a Custom OS Image for NKP Clusters" describes the process of using the nutanix-kps-image-builder repository

which contains the Packer and Ansible scripts.

URL: https://portal.nutanix.com/page/documents/details?targetId=Nutanix-Kubernetes-Platform-Admin-Guide:aks-kps-image-create-custom-t.html

2. Nutanix Kubernetes Platform Image Builder Repository: The file structure of the official repository shows the ansible/groupvars/all/defaults.yaml file containing the version variables.

URL: https://github.com/nutanix/nutanix-kps-image-builder/blob/main/ansible/groupvars/all/defaults.yaml

Specifics: This file explicitly lists variables such as k8sversion and containerdversion.

Scroll to Top