mirror of
https://github.com/outbackdingo/deployment.git
synced 2026-03-22 09:41:36 +00:00
Update Minio pod status check to verify readiness state 2/2
This commit is contained in:
2
.github/workflows/k3d.yaml
vendored
2
.github/workflows/k3d.yaml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
kubectl apply -f ./base/minio/minio-tenant-base.yaml
|
||||
echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60
|
||||
kubectl get po -A -o wide
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1)
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1)
|
||||
- name: Install MongoDB
|
||||
id: install-mongodb
|
||||
run: |
|
||||
|
||||
2
.github/workflows/kind.yaml
vendored
2
.github/workflows/kind.yaml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
kubectl apply -f ./base/minio/minio-tenant-base.yaml
|
||||
echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60
|
||||
kubectl get po -A -o wide
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1)
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1)
|
||||
- name: Install MongoDB
|
||||
id: install-mongodb
|
||||
run: |
|
||||
|
||||
10
.github/workflows/microk8s.yaml
vendored
10
.github/workflows/microk8s.yaml
vendored
@@ -26,12 +26,12 @@ jobs:
|
||||
kubectl get pods -A -o wide
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Install OpenEBS
|
||||
- name: Create storage class
|
||||
id: create-storage-class
|
||||
run: |
|
||||
kubectl apply -f https://openebs.github.io/charts/openebs-operator.yaml
|
||||
echo "Sleeping for 60 seconds, give time for the operator to create the CRDs" && sleep 60
|
||||
kubectl apply -f ./base/ssd-hostpath-storageclass.yaml
|
||||
echo "Sleeping for 30 seconds, give time for the storage class to be created" && sleep 30
|
||||
kubectl get sc
|
||||
kubectl get po -A -o wide
|
||||
- name: Install Prometheus operator
|
||||
id: install-prometheus-operator
|
||||
run: |
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
kubectl apply -f ./base/minio/minio-tenant-base.yaml
|
||||
echo "Sleeping for 60 seconds, give time for the operator/tenant to create the CRDs" && sleep 60
|
||||
kubectl get po -A -o wide
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '1/2' && echo "myminio-pool-0-0 pod is running with status 1/2" || (echo "myminio-pool-0-0 pod is not running with status 1/2" && exit 1)
|
||||
kubectl get po -A -o wide | grep myminio-pool-0-0 | awk '{print $3}' | grep -q '2/2' && echo "myminio-pool-0-0 pod is running with status 2/2" || (echo "myminio-pool-0-0 pod is not running with status 2/2" && exit 1)
|
||||
- name: Install MongoDB
|
||||
id: install-mongodb
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user