File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
docs/tasks/run-application Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ MySQL을 실행하고 퍼시스턴트볼륨클레임을 참조하는 디플로
80
80
Labels: app=mysql
81
81
Containers:
82
82
mysql:
83
- Image: mysql:5.6
83
+ Image: mysql:9
84
84
Port: 3306/TCP
85
85
Environment:
86
86
MYSQL_ROOT_PASSWORD: password
@@ -141,7 +141,7 @@ MySQL을 실행하고 퍼시스턴트볼륨클레임을 참조하는 디플로
141
141
서버에 접속하기 위하여 MySQL 클라이언트를 실행한다.
142
142
143
143
```
144
- kubectl run -it --rm --image=mysql:5.6 --restart=Never mysql-client -- mysql -h mysql -ppassword
144
+ kubectl run -it --rm --image=mysql:9 --restart=Never mysql-client -- mysql -h mysql -ppassword
145
145
```
146
146
147
147
이 명령어는 MySQL 클라이언트를 실행하는 파드를 클러스터에 생성하고,
Original file line number Diff line number Diff line change 25
25
app : mysql
26
26
spec :
27
27
containers :
28
- - image : mysql:5.6
28
+ - image : mysql:9
29
29
name : mysql
30
30
env :
31
31
# Use secret in real usage
Original file line number Diff line number Diff line change @@ -45,14 +45,23 @@ spec:
45
45
tier : mysql
46
46
spec :
47
47
containers :
48
- - image : mysql:5.6
48
+ - image : mysql:8.0
49
49
name : mysql
50
50
env :
51
51
- name : MYSQL_ROOT_PASSWORD
52
52
valueFrom :
53
53
secretKeyRef :
54
54
name : mysql-pass
55
55
key : password
56
+ - name : MYSQL_DATABASE
57
+ value : wordpress
58
+ - name : MYSQL_USER
59
+ value : wordpress
60
+ - name : MYSQL_PASSWORD
61
+ valueFrom :
62
+ secretKeyRef :
63
+ name : mysql-pass
64
+ key : password
56
65
ports :
57
66
- containerPort : 3306
58
67
name : mysql
You can’t perform that action at this time.
0 commit comments