Skip to content

router - single port/ingress; alt server certs #70

router - single port/ingress; alt server certs

router - single port/ingress; alt server certs #70

Workflow file for this run

name: Test charts in minikube
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/miniziti.yml'
- 'charts/ziti-controller/**'
- 'charts/ziti-router/**'
- 'charts/ziti-console/**'
- 'charts/httpbin/**'
# cancel older, redundant runs of same workflow on same branch
concurrency:
group: ${{ github.workflow }}-${{github.event_name}}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
miniziti:
runs-on: ubuntu-latest
name: deploy to minikube
steps:
- name: Checkout workspace
uses: actions/checkout@v3
- name: Start minikube
uses: medyagh/[email protected]
with:
start-args: --profile miniziti
- name: install ziti cli
uses: supplypike/setup-bin@v3
with:
uri: https://github.com/openziti/ziti/releases/download/v0.30.4/ziti-linux-amd64-0.30.4.tar.gz
name: ziti
version: "0.30.4"
# this is the kubernetes quickstart script from
# https://openziti.io/docs/learn/quickstarts/network/local-kubernetes
- name: install miniziti
uses: supplypike/setup-bin@v3
with:
# uri: https://raw.githubusercontent.com/qrkourier/ziti/d8a2d6e6da0c5edbf67357969a672daffc468bf3/quickstart/kubernetes/miniziti.bash
uri: https://get.openziti.io/miniziti.bash
name: miniziti
version: quickstartrelease
- name: Run miniziti with latest release charts
run: miniziti start --no-hosts --verbose
- name: Upgrade miniziti with charts from this branch
run: miniziti start --no-hosts --verbose --charts ./charts
- name: Enroll client identity
run: >
ziti edge enroll
--jwt ~/.local/state/miniziti/profiles/miniziti/identities/miniziti-client.jwt
--out ~/.local/state/miniziti/profiles/miniziti/identities/miniziti-client.json
- name: Run client proxy
run: >
nohup ziti tunnel proxy "httpbin-service:4321"
--identity ~/.local/state/miniziti/profiles/miniziti/identities/miniziti-client.json
--verbose </dev/null &>/tmp/miniziti-client.log &
- name: Wait for proxy to serve the httpbin service
uses: iFaxity/wait-on-action@v1
with:
resource: http://127.0.0.1:4321/get
delay: 1000
interval: 1000
timeout: 10000
- name: Send a POST request to the httpbin service and verify the response data
run: |
set -euo pipefail
curl -sSf -XPOST -F ziti=awesome http://127.0.0.1:4321/post > /tmp/httpbin-response.json
AWESOME=$(jq -r '.form.ziti[0]' /tmp/httpbin-response.json)
if [[ "$AWESOME" == "awesome" ]]; then
echo "Ziti is awesome!"
else
echo "Got '$AWESOME' instead of 'awesome'" >&2
exit 1
fi
- name: Print the proxy log
if: always()
run: cat /tmp/miniziti-client.log