项目作者: marcus-sa

项目描述 :
PKI - Istio resources for Pulumi Kubernetes
高级语言: TypeScript
项目地址: git://github.com/marcus-sa/pulumi-kubernetes-istio.git
创建时间: 2019-08-10T21:34:40Z
项目社区:https://github.com/marcus-sa/pulumi-kubernetes-istio

开源协议:MIT License

下载


PKI (Pulumi Kubernetes Istio)

Pulumi Kubernetes resources for Istio generated from the Istio API

Installation

  1. $ 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

  1. import * as istio from 'pki';
  2. // ...
  3. export const helloWorldGateway = new istio.networking.v1alpha3.Gateway(
  4. 'hello-world-gateway',
  5. {
  6. metadata: {
  7. name: 'hello-world-gateway'
  8. },
  9. spec: {
  10. selector: {
  11. istio: 'ingressgateway'
  12. },
  13. servers: [
  14. {
  15. port: {
  16. number: 80,
  17. name: 'http',
  18. protocol: 'HTTP'
  19. },
  20. hosts: ['*']
  21. }
  22. ]
  23. }
  24. }
  25. );