Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.52 KB

README.md

File metadata and controls

53 lines (43 loc) · 1.52 KB

Setup Istio Github Action

Install Istio

Usage

Istio requires a Kubernetes cluster to run. You can use any Github Actions that installs a Kubernetes cluster before running this action. An example is shown below.

Basic

name: Example workflow
on: [push]
jobs:
  example:
    name: Create Istio service mesh
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Setup Minikube
        uses: manusa/[email protected]
        with:
          minikube version: 'v1.11.0'
          kubernetes version: 'v1.17.7'
          start args: '--embed-certs'
      - name: Get kubeconfig
        id: kubeconfig
        run: a="$(cat ~/.kube/config)"; a="${a//'%'/'%25'}"; a="${a//$'\n'/'%0A'}"; a="${a//$'\r'/'%0D'}"; echo "::set-output name=config::$a"
      - name: Install Istio
        uses: huang195/[email protected]
        with:
          kubeconfig: "${{steps.kubeconfig.outputs.config}}"
          istio version: '1.6.3'
      - name: Interact with the cluster
        run: kubectl get all --all-namespaces

Required input parameters

Parameter Description
kubeconfig Kubeconfig file that kubectl uses

Optional input parameters

Parameter Description
istio version Istio version to deploy
istio profile Istio profile during installation
istio args Istio arguments during installation