-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.21 KB
/
ci-storage.yaml
File metadata and controls
39 lines (39 loc) · 1.21 KB
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
name: CI-storage
on:
push:
branches:
- main
jobs:
kubernetes:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: minikube
run: |
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo apt-get install ./minikube_latest_amd64.deb
- name: init
run: minikube start --driver=docker
- name: deploy-sc
run: kubectl apply -f etc/kubernetes/manifests/sc-redis.yaml
- name: deploy-pv
run: kubectl apply -f etc/kubernetes/manifests/pv-redis.yaml
- name: deploy-pvc
run: kubectl apply -f etc/kubernetes/manifests/pvc-redis.yaml
- name: deploy-po
run: kubectl apply -f etc/kubernetes/manifests/po-redis.yaml
- name: test
run: |
set -x
while true
do
sleep 10
kubectl get all
kubectl logs redis-po
mkdir -p /tmp/redis
touch /tmp/redis/chris
ls -l /tmp/redis
kubectl exec redis-po -- ls /data -l
kubectl exec redis-po -- ls /data|grep chris&&break
done