mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-15 02:52:20 +08:00
Fixing Ubuntu Runner Issue (#259)
* changed ubuntu runner * changed minikube action * Version formatting * nonedriveR * update kube version * installing conntrack' * updated other actions * update bg ingress api version * prettify * updated ingress backend for new api version * Added path type * prettify
This commit is contained in:
parent
58ba3f0665
commit
c875a14bde
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
run-integration-test:
|
run-integration-test:
|
||||||
name: Run Minikube Integration Tests
|
name: Run Minikube Integration Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-20.04
|
||||||
env:
|
env:
|
||||||
KUBECONFIG: /home/runner/.kube/config
|
KUBECONFIG: /home/runner/.kube/config
|
||||||
NAMESPACE: test-${{ github.run_id }}
|
NAMESPACE: test-${{ github.run_id }}
|
||||||
@ -26,6 +26,8 @@ jobs:
|
|||||||
npm install
|
npm install
|
||||||
- name: Install ncc
|
- name: Install ncc
|
||||||
run: npm i -g @vercel/ncc
|
run: npm i -g @vercel/ncc
|
||||||
|
- name: Install conntrack
|
||||||
|
run: sudo apt-get install -y conntrack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ncc build src/run.ts -o lib
|
run: ncc build src/run.ts -o lib
|
||||||
|
|
||||||
@ -34,10 +36,10 @@ jobs:
|
|||||||
|
|
||||||
- id: setup-minikube
|
- id: setup-minikube
|
||||||
name: Setup Minikube
|
name: Setup Minikube
|
||||||
uses: manusa/actions-setup-minikube@v2.4.2
|
uses: medyagh/setup-minikube@latest
|
||||||
with:
|
with:
|
||||||
minikube version: 'v1.24.0'
|
minikube-version: 1.24.0
|
||||||
kubernetes version: 'v1.21.0'
|
kubernetes-version: 1.22.3
|
||||||
driver: 'none'
|
driver: 'none'
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ spec:
|
|||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-ingress
|
name: nginx-ingress
|
||||||
@ -43,10 +43,16 @@ spec:
|
|||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
- path: /testpath
|
- path: /testpath
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: nginx-service
|
service:
|
||||||
servicePort: 80
|
name: nginx-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
- path: /testpath2
|
- path: /testpath2
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: unrouted-service
|
service:
|
||||||
servicePort: 80
|
name: unrouted-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user