mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
add check for storage class host path
This commit is contained in:
parent
7128b76adf
commit
9230a00222
@ -5,6 +5,12 @@
|
||||
kubectl create ns example
|
||||
```
|
||||
|
||||
# Check the storageclass for host path provisioner
|
||||
|
||||
```
|
||||
kubectl get storageclass
|
||||
```
|
||||
|
||||
# Deploy our statefulset
|
||||
|
||||
```
|
||||
@ -16,7 +22,7 @@ kubectl -n example apply -f .\kubernetes\statefulsets\example-app.yaml
|
||||
|
||||
```
|
||||
$IPs = $(kubectl -n example get pods -l app=redis-cluster -o jsonpath='{range.items[*]}{.status.podIP}:6379 ')
|
||||
kubectl -n example exec -it redis-cluster-1 -- /bin/sh -c "redis-cli -h 127.0.0.1 -p 6379 --cluster create ${IPs}"
|
||||
kubectl -n example exec -it redis-cluster-0 -- /bin/sh -c "redis-cli -h 127.0.0.1 -p 6379 --cluster create ${IPs}"
|
||||
kubectl -n example exec -it redis-cluster-0 -- /bin/sh -c "redis-cli -h 127.0.0.1 -p 6379 cluster info"
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user