Assignment
The week 4 assignment consists of two parts: studying the package manager Helm and studying IAM.
4.1 Helm
Helm is the package manager for Kubernetes. Instead of manually applying individual deployment.yaml and service.yaml files, Helm bundles everything into a chart: a single installable package.
There are three key concepts in Helm:
- The chart is a bundle containing all information needed to create an instance of a Kubernetes application.
- The config (e.g.
values.yaml) contains configuration information that can be merged with a chart to create a release object. - A release is a running instance of a chart combined with a specific configuration.
a) Default chart
Create an Autopilot GKE cluster in Google Cloud and connect to it via the Cloud Console or via the Google CLI on your PC.
Helm is already installed in the Cloud Console. If you use the Google CLI on your PC, first download the
helmbinary and place it in a directory.Create a Helm chart yourself (e.g.
MyChart) and study its contents:helm create mychartDescribe the contents of the Helm chart and explain the different components.
Install the Helm chart on the Kubernetes cluster:
helm install mychart-v1 mychartCheck the
values.yamlfile and verify thatreplicaCountis set to1and that no Ingress has been created.Update
values.yamlso that an Ingress is created and setreplicaCountto2.Install the chart as version v2 and verify that everything works as expected:
helm upgrade mychart-v1 mychartVerify with:
helm ls kubectl get pods kubectl get services kubectl get deploymentsShow how to remove a release:
helm uninstall mychart-v1
b) Your own application
Copy the Helm chart you created in part a) and modify the copy so that the application from week 1 and 2 (your own Docker image) can be installed via the chart.
c) WordPress via Artifact Hub
Install WordPress via a Helm chart from the Bitnami repository. Show that the application is running correctly.
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-wordpress bitnami/wordpressAfterwards, remove all installations and delete the cluster.
4.2 IAM & Case Study: EHR Healthcare
EHR Healthcare (see the case description) is a company with on-premise infrastructure that wants to migrate to the cloud. They are particularly interested in security and IAM. In the cloud, IAM offers more functionality than an on-premise Active Directory.
Explain the following concepts as used in Azure, and advise EHR Healthcare whether they should use each concept. Justify your answer.
- Single Sign-On (SSO): Can this also be configured for on-premise applications?
- Conditional Access
- RBAC (Role-Based Access Control)
- Identity Protection
- Multi-Factor Authentication (MFA)
- Managed Identities and Service Principals