Skip to content

Commit c76305d

Browse files
committed
fix(k8s): wording
1 parent 93dda5d commit c76305d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pages/kubernetes/api-cli/cluster-monitoring.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Deploy the Prometheus stack in a dedicated Kubernetes [namespace](https://kubern
8080
```
8181
5. To access Prometheus use the Kubernetes [port forwarding](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/) feature:
8282
```bash
83-
export pod_NAME=$(kubectl get pods --namespace monitoring -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
84-
kubectl --namespace monitoring port-forward $pod_NAME 9090
83+
export POD_NAME=$(kubectl get pods --namespace monitoring -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
84+
kubectl --namespace monitoring port-forward $POD_NAME 9090
8585
```
8686
6. Access the Prometheus dashboard using the following URL: [http://localhost:9090](http://localhost:9090)
8787
<Lightbox image={image} alt="" />

tutorials/enabling-encryption-in-kapsule-with-cilium/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Below is an example YAML manifest that deploys:
116116
cpu: 100m
117117
memory: 100Mi
118118
affinity:
119-
PodAntiAffinity:
119+
podAntiAffinity:
120120
requiredDuringSchedulingIgnoredDuringExecution:
121121
- topologyKey: "kubernetes.io/hostname"
122122
labelSelector:
@@ -168,7 +168,7 @@ Below is an example YAML manifest that deploys:
168168
cpu: 100m
169169
memory: 100Mi
170170
affinity:
171-
PodAntiAffinity:
171+
podAntiAffinity:
172172
preferredDuringSchedulingIgnoredDuringExecution:
173173
- weight: 50
174174
PodAffinityTerm:

tutorials/k8s-gitlab/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ In this part of the tutorial we customize the `value.yaml` to fit our needs and
121121
namespace: gitlab-runner
122122
rules:
123123
- apiGroups: [""]
124-
resources: ["Pods"]
124+
resources: ["pods"]
125125
verbs: ["list", "get", "watch", "create", "delete"]
126126
- apiGroups: [""]
127127
resources: ["Pods/exec"]
128128
verbs: ["create"]
129129
- apiGroups: [""]
130-
resources: ["Pods/log"]
130+
resources: ["pods/log"]
131131
verbs: ["get"]
132132
EOF
133133
kubectl create rolebinding --namespace=gitlab-runner gitlab-runner-binding --role=gitlab-runner --serviceaccount=gitlab-runner:default

tutorials/k8s-kapsule-multi-az/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Then, disable the default Kubernetes service creation by the Helm chart as it wi
284284
app.kubernetes.io/instance: ingress-nginx
285285
app.kubernetes.io/component: controller
286286
affinity:
287-
PodAntiAffinity:
287+
podAntiAffinity:
288288
requiredDuringSchedulingIgnoredDuringExecution:
289289
- labelSelector:
290290
matchLabels:
@@ -515,7 +515,7 @@ It is important to use a storage class with the `volumeBindingMode` option set t
515515
node.attr.zone: "$${ZONE}"
516516
cluster.routing.allocation.awareness.attributes: "k8s_node_name,zone"
517517
node.store.allow_mmap: false
518-
PodTemplate:
518+
podTemplate:
519519
spec:
520520
containers:
521521
- name: "elasticsearch"

tutorials/monitor-k8s-grafana/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ We are first going to deploy the `Prometheus` stack in a dedicated Kubernetes [n
8989
```
9090
3. To access `Prometheus` use the Kubernetes [port forwarding](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/) feature:
9191
```
92-
export pod_NAME=$(kubectl get pods --namespace monitoring -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
93-
kubectl --namespace monitoring port-forward $pod_NAME 9090
92+
export POD_NAME=$(kubectl get pods --namespace monitoring -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
93+
kubectl --namespace monitoring port-forward $POD_NAME 9090
9494
```
9595
4. Access the `Prometheus` dashboard using the following URL: http://localhost:9090.
9696
<Lightbox image={image} alt="" />

0 commit comments

Comments
 (0)