fix some unsatisfied. (#8746)
* fix some unsatisfied. * fix * add mysql-pv.yaml for run-single-instance-stateful-application * fix some errors.
This commit is contained in:
@@ -49,14 +49,19 @@ Note: The password is defined in the config yaml, and this is insecure. See
|
||||
for a secure solution.
|
||||
|
||||
{{< code file="mysql-deployment.yaml" >}}
|
||||
{{< code file="mysql-pv.yaml" >}}
|
||||
|
||||
1. Deploy the PV and PVC of the YAML file:
|
||||
|
||||
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-pv.yaml
|
||||
|
||||
1. Deploy the contents of the YAML file:
|
||||
|
||||
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-deployment.yaml
|
||||
kubectl create -f https://k8s.io/docs/tasks/run-application/mysql-deployment.yaml
|
||||
|
||||
1. Display information about the Deployment:
|
||||
|
||||
kubectl describe deployment mysql
|
||||
kubectl describe deployment mysql
|
||||
|
||||
Name: mysql
|
||||
Namespace: default
|
||||
@@ -96,14 +101,14 @@ for a secure solution.
|
||||
|
||||
1. List the pods created by the Deployment:
|
||||
|
||||
kubectl get pods -l app=mysql
|
||||
kubectl get pods -l app=mysql
|
||||
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
mysql-63082529-2z3ki 1/1 Running 0 3m
|
||||
|
||||
1. Inspect the PersistentVolumeClaim:
|
||||
|
||||
kubectl describe pvc mysql-pv-claim
|
||||
kubectl describe pvc mysql-pv-claim
|
||||
|
||||
Name: mysql-pv-claim
|
||||
Namespace: default
|
||||
@@ -165,6 +170,7 @@ Delete the deployed objects by name:
|
||||
```
|
||||
kubectl delete deployment,svc mysql
|
||||
kubectl delete pvc mysql-pv-claim
|
||||
kubectl delete pv mysql-pv-volume
|
||||
```
|
||||
|
||||
If you manually provisioned a PersistentVolume, you also need to manually
|
||||
|
||||
Reference in New Issue
Block a user