Skip to content

Commit

Permalink
Merge pull request #8 from oracle-livelabs/version-updates
Browse files Browse the repository at this point in the history
Version updates
  • Loading branch information
martatolosa authored Apr 4, 2024
2 parents 0a457db + 9317bf0 commit 36655a5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions cloud-native/kubernetes/base-kubernetes/kubernetes-base-labs.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Firstly we need to create a namespace for the ingress controller.
2. Run the following command to install **ingress-nginx** using Helm 3:

```bash
<copy>helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --version 4.6.1 --set rbac.create=true --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-protocol"=TCP --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape"=flexible --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape-flex-min"=10 --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape-flex-max"=10</copy>
<copy>helm install ingress-nginx ingress-nginx/ingress-nginx --namespace ingress-nginx --version 4.10.0 --set rbac.create=true --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-protocol"=TCP --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape"=flexible --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape-flex-min"=10 --set controller.service.annotations."service\.beta\.kubernetes\.io/oci-load-balancer-shape-flex-max"=10</copy>
```

Example Output
Expand Down Expand Up @@ -308,7 +308,7 @@ The helm options are :
- `--namespace ingress-nginx` The kubernetes namespace to install the software into
- `--version 4.6.1` The version of the helm chart to use to specify the install (the software version is defined in the chart, so is indirectly specified for you)
- `--version 4.10.0` The version of the helm chart to use to specify the install (the software version is defined in the chart, so is indirectly specified for you)
- `--set rbac.create=true` Tells the helm chart to specifiy the role based access control features, we're not really using these in this lab, but they make this a lot more secure in a production env ironment.
Expand Down Expand Up @@ -412,7 +412,7 @@ export EXTERNAL_IP=[External IP]
1. To install the dashboard we will be using the environment variable `EXTERNAL_IP` which we earlier set to the IP address of the Load balancer of the Ingress controller service. The variable `$EXTERNAL_IP` in the test below will be replaced by the value you set it to when the command is run. **IMPORTANT** if you have for any reason had to create a new cloud shell that variable will need to be setup again.
```bash
<copy>helm install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --namespace kube-system --set ingress.enabled=true --set ingress.annotations."kubernetes\.io/ingress\.class"=nginx --set ingress.hosts="{dashboard.kube-system.$EXTERNAL_IP.nip.io}" --version 6.0.7</copy>
<copy>helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --namespace kube-system --set app.ingress.enabled=true --set app.ingress.ingressClassName=nginx --set app.ingress.hosts="{dashboard.kube-system.$EXTERNAL_IP.nip.io}" --version 7.1.2</copy>
```
Example Output
Expand Down Expand Up @@ -502,9 +502,9 @@ The helm options are :
- `--namespace kube-system` This tells helm to install the dashboard into the kube-system namespace. Namespaces are ways of partitioning the physical cluster into a virtual cluster to help you manage related resources, they are similar to the way you organize files using folders on your computer, but can also restrict resource usage like memory and cpu and future versions of Kubernetes plan to support role based access controls based on namespaces.
- `--set ingress.enabled=true`, `--set ingress.annotations."kubernetes\.io/ingress\.class"=nginx` and `--set ingress.hosts='{dashboard.kube-system.158.101.210.253.nip.io}'` These tell helm to configure an ingress rule, this basically tells the nginx ingress controller we installed earlier how to identify requests to the dashboard, and send them to the dashboard service.
- `--set app.ingress.enabled=true`, `--set app.ingress.ingressClassName=nginx` and ` --set app.ingress.hosts="{dashboard.kube-system.$EXTERNAL_IP.nip.io}"` These tell helm to configure an ingress rule. This rule (we'll see more in ingress rules in a bit) basically tells the nginx ingress controller we installed earlier how to identify requests to the dashboard, and send them to the dashboard service.
- `--version 6.0.7` This tells helm to use a specific version of the helm chart.
- `--version 7.1.2` This tells helm to use a specific version of the helm chart.
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ For now we are going to use the simplest approach of the metrics server.
3. In the OCI Cloud Shell install the metrics server by typing
```bash
<copy>helm install metrics-server metrics-server/metrics-server --version 3.10.0</copy>
<copy>helm install metrics-server metrics-server/metrics-server --version 3.12.0</copy>
```
Example Output
```
NAME: metrics-server
LAST DEPLOYED: Fri Jul 8 19:11:45 2022
LAST DEPLOYED: Fri Jul 8 19:11:45 2023
NAMESPACE: kube-system
STATUS: deployed
REVISION: 1
Expand All @@ -84,9 +84,9 @@ For now we are going to use the simplest approach of the metrics server.
***********************************************************************
* Metrics Server *
***********************************************************************
Chart version: 3.8.2
App version: 0.6.1
Image tag: k8s.gcr.io/metrics-server/metrics-server:v0.6.1
Chart version: 3.12.0
App version: 0.8.2
Image tag: k8s.gcr.io/metrics-server/metrics-server:v0.8.2
***********************************************************************
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ The Helm chart will automatically create a couple of small persistent volumes to
1. Installing Prometheus is simple, we just use helm, though there are quite a lot of options here most of them relate to setting up security on the ingress rules. In the OCI Cloud Shell type the following.
```bash
<copy>helm install prometheus prometheus-community/prometheus --namespace monitoring --version 22.4.1 --set server.ingress.enabled=true --set server.ingress.hosts="{prometheus.monitoring.$EXTERNAL_IP.nip.io}" --set server.ingress.tls[0].secretName=tls-prometheus --set server.ingress.annotations."kubernetes\.io/ingress\.class"=nginx --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-type"=basic --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-secret"=web-ingress-auth --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-realm"="Authentication Required" --set alertmanager.persistentVolume.enabled=false --set server.persistentVolume.enabled=false --set pushgateway.persistentVolume.enabled=false</copy>
<copy>helm install prometheus prometheus-community/prometheus --namespace monitoring --version 25.18.0 --set server.ingress.enabled=true --set server.ingress.hosts="{prometheus.monitoring.$EXTERNAL_IP.nip.io}" --set server.ingress.tls[0].secretName=tls-prometheus --set server.ingress.ingressClassName=nginx --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-type"=basic --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-secret"=web-ingress-auth --set server.ingress.annotations."nginx\.ingress\.kubernetes\.io/auth-realm"="Authentication Required" --set alertmanager.persistentVolume.enabled=false --set server.persistentVolume.enabled=false --set pushgateway.persistentVolume.enabled=false</copy>
```
Example Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ ingress-nginx-controller-admission ClusterIP 10.96.216.33 <none>
6. Let's install Grafana itself. In the OCI Cloud Shell type following command, replace `<External IP>` with the IP address of the load balancer we've been using for all the other steps.

```bash
<copy>helm install grafana grafana/grafana --version 6.56.2 --namespace monitoring --set persistence.enabled=true --set ingress.enabled=true --set ingress.hosts="{grafana.monitoring.$EXTERNAL_IP.nip.io}" --set ingress.tls[0].secretName=tls-grafana --set ingress.annotations."kubernetes\.io/ingress\.class"=nginx</copy>
<copy>helm install grafana grafana/grafana --version 6.56.2 --namespace monitoring --set persistence.enabled=true --set ingress.enabled=true --set ingress.hosts="{grafana.monitoring.$EXTERNAL_IP.nip.io}" --set ingress.tls[0].secretName=tls-grafana --set ingress.ingressClassName=nginx</copy>
```

Example Output
Expand Down

0 comments on commit 36655a5

Please sign in to comment.