Skip to content

Commit 503b1ed

Browse files
author
Antonio Cappiello
committed
wip
1 parent 2807b63 commit 503b1ed

File tree

3 files changed

+39
-13
lines changed

3 files changed

+39
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ You can configure multiple such initContainers as well, like how we did for mult
12941294
12951295
If any of the initContainers fail to complete, Kubernetes restarts the Pod repeatedly until the Init Container succeeds.
12961296
1297-
## Cluster Maintenance
1297+
## Cluster Mainteance
12981298
12991299
Topics: operating systems upgrades, losing a node from the cluster, apply patches, kubernetes releases and versions, best practices around upgrading.
13001300
Perform an end-to-end upgrade on a cluster, and also apply a disaster recovery scenario.
@@ -1330,7 +1330,7 @@ First you upgrade your master node, and then the worker nodes. When upgrading th
13301330

13311331
But first you have to update kubeadm:
13321332

1333-
```md
1333+
```
13341334
apt-get upgrade -y kubeadm=1.12.0-00
13351335
kubeadm upgrade apply v1.12.0
13361336
# then upgrade on worker nodes as well

pod.k8s.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: "i"
5+
namespace: default
6+
labels:
7+
app: "myapp"
8+
spec:
9+
containers:
10+
- name: myapp
11+
image: "debian-slim:latest"
12+
resources:
13+
limits:
14+
cpu: 200m
15+
memory: 500Mi
16+
requests:
17+
cpu: 100m
18+
memory: 200Mi
19+
env:
20+
- name: DB_HOST
21+
valueFrom:
22+
configMapKeyRef:
23+
name: myapp
24+
key: DB_HOST
25+
ports:
26+
- containerPort: 80
27+
name: http
28+
volumeMounts:
29+
- name: localtime
30+
mountPath: /etc/localtime
31+
volumes:
32+
- name: localtime
33+
hostPath:
34+
path: /usr/share/zoneinfo/Asia/Taipei
35+
restartPolicy: Always
36+
---
37+

pod.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)