-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathsession-60.txt
50 lines (33 loc) · 1.1 KB
/
session-60.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
1. PV --> representing physical storage
2. PVC --> Claiming the storage
3. SC --> automatic creation of volume and PV based on the claim from PVC
Deployment vs Statefulset
---------------------------
1. stateful applications like DB
2. PV and PVC are mandatory for statefulset
3. Orderly provisioning of pods happens.
4. pods keep their identity like name.
5. We must create headless service.
6. every pod should have its own storage. so PV and PVC should be created for every pod.
1. Install EBS drivers
2. Check EC2 Role permissions
3. create storage class
4. create statefulset
mysql-mysql-0
pvc-name-statefulset-name-0
if deployment, nslookup of service gives, service IP address
if statefulset, nslookup of headless service gives us IP address of all pods.
HELM
--------------
1. building image
2. running image
only few values frequently change in manifest files.
1. kubernetes package manager
2. templatise manifest files
1. Chart.yaml
install hellm chart
helm install <preferred-name> . --> . represents Chart.yaml in current directory
helm uninstall nginx
helm upgrade nginx .
helm status
helm history