exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 4 discussion

Actual exam question from Microsoft's AZ-400
Question #: 4
Topic #: 8
[All AZ-400 Questions]

DRAG DROP -
You provision an Azure Kubernetes Service (AKS) cluster that has RBAC enabled. You have a Helm chart for a client application.
You need to configure Helm and Tiller on the cluster and install the chart.
Which three commands should you recommend be run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Kubectl create -
You can add a service account to Tiller using the --service-account <NAME> flag while you're configuring Helm (step 2 below). As a prerequisite, you'll have to create a role binding which specifies a role and a service account name that have been set up in advance.
Example: Service account with cluster-admin role
$ kubectl create -f rbac-config.yaml
serviceaccount "tiller" created
clusterrolebinding "tiller" created
$ helm init --service-account tiller

Step 2: helm init -
To deploy a basic Tiller into an AKS cluster, use the helm init command.

Step 3: helm install -
To install charts with Helm, use the helm install command and specify the name of the chart to install.
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-helm
https://docs.helm.sh/using_helm/#tiller-namespaces-and-rbac

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
bnair
Highly Voted 4 years, 6 months ago
kubectl apply -> create tiller service and cluster-admin role binding helm init -> deploy basic tiller to aks cluster helm install -> install helm charts
upvoted 70 times
RealRaymond
1 year, 6 months ago
There is a typo, it should be kubectl create.
upvoted 4 times
...
...
JohnD2020
Highly Voted 4 years, 7 months ago
I think you first need to install it before you can init(ialize) it. So it would be kubectl install init
upvoted 11 times
hubeau
4 years, 7 months ago
Init before install: https://docs.microsoft.com/en-us/azure/aks/kubernetes-helm#install-an-application-with-helm-v2
upvoted 17 times
...
noussa
3 years, 6 months ago
https://v2.helm.sh/docs/using_helm/ This can help u understand as I was confused In the beginning: init helm and install tiller but the confusing part is the use of the helm keyword with both steps :D
upvoted 4 times
...
Fred64
4 years, 6 months ago
init install Tiller. You need Tiller to instal chart
upvoted 3 times
...
...
vsvaid
Most Recent 11 months ago
Correct answer
upvoted 1 times
...
varinder82
11 months, 4 weeks ago
Final Anser after reading all below comments: kubectl apply -f rbac-config.yaml helm init --service-account tiller helm install my-chart-dir --name my-chart
upvoted 2 times
...
CirusD
1 year, 1 month ago
kubectl apply -f rbac-config.yaml helm init --service-account tiller helm install my-chart-dir --name my-chart
upvoted 1 times
...
renzoku
1 year, 5 months ago
If we are using Helm version 3, Tiller wouldn't longer necessary Answer is correct for previous Helm version
upvoted 4 times
KumaTed
1 year, 5 months ago
yes, the question is out of date
upvoted 2 times
...
...
syu31svc
2 years, 3 months ago
Answer is correct https://v2.helm.sh/docs/helm/ "To begin working with Helm, run the ‘helm init’ command" https://helm.sh/docs/helm/helm_install/ "helm install install a chart" https://docs.microsoft.com/en-us/azure/aks/kubernetes-helm "This article assumes that you have an existing AKS cluster."
upvoted 2 times
...
rdemontis
2 years, 8 months ago
correct answer https://github.com/venezia/k8s-helm/blob/master/docs/service_accounts.md
upvoted 4 times
...
Mev4953
2 years, 9 months ago
$ Kubectl $ helm install $ helm init https://helm.sh/docs/intro/quickstart/
upvoted 3 times
...
poplovic
3 years, 2 months ago
https://github.com/venezia/k8s-helm/blob/master/docs/service_accounts.md 1. create the service account and binding $kubectl create -f rolebinding-tiller.yaml 2. securely install Tiller (the helm server side component). $ helm init --service-account tiller --tiller-namespace tiller-world 3. install the chart (package) $ helm install nginx --tiller-namespace tiller-world --namespace tiller-world
upvoted 5 times
...
Indran
3 years, 6 months ago
https://docs.bitnami.com/tutorials/create-your-first-helm-chart/ kubectl install init
upvoted 4 times
...
Ajithct
3 years, 12 months ago
kubectl apply helm init helm instal
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...