-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (43 loc) · 1.36 KB
/
minikube-yaml-ci.yml
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
40
41
42
43
44
45
name: Minikube Yaml CI
on:
push:
branches:
- master
paths:
- "**.yaml"
- ".github/workflows/minikube-yaml-ci.yml"
pull_request:
paths:
- "**.yaml"
- ".github/workflows/minikube-yaml-ci.yml"
jobs:
yaml-ci:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
- name: start minikube
uses: medyagh/[email protected]
with:
minikube-version: 1.31.0
kubernetes-version: 1.31.1
driver: docker
container-runtime: docker
cpus: 2
memory: 6144
addons: ingress
- name: minikube settings
run: |
minikube addons list
# https://minikube.sigs.k8s.io/docs/drivers/docker/#troubleshooting
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
- name: wait for set up ingress
run: |
kubectl wait --all-namespaces=true --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=10m
- name: add hosts
run: echo `minikube ip` k8s.3tier.webapp | sudo tee -a /etc/hosts
- name: apply all service
run: |
sh ./kubernetes/bin/apply.sh