Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

marcus-sa/pulumi-kubernetes-istio

Repository files navigation

PKI (Pulumi Kubernetes Istio)

Pulumi Kubernetes resources for Istio generated from the Istio API

Installation

$ yarn add pki @pulumi/pulumi @pulumi/kubernetes

Prerequisites

Ensure you have instantiated Istio using @pulumi/kubernetes
An example on how to do so can be found here.

Usage

PKI follows the same API spec as @pulumi/kubernetes

Example

Gateway

import * as istio from 'pki';

// ...

export const helloWorldGateway = new istio.networking.v1alpha3.Gateway(
  'hello-world-gateway',
  {
    metadata: {
      name: 'hello-world-gateway'
    },
    spec: {
      selector: {
        istio: 'ingressgateway'
      },
      servers: [
        {
          port: {
            number: 80,
            name: 'http',
            protocol: 'HTTP'
          },
          hosts: ['*']
        }
      ]
    }
  }
);