How to use the @pulumi/kubernetes.extensions function in @pulumi/kubernetes

To help you get started, we’ve selected a few @pulumi/kubernetes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pulumi / kubernetes-guides / general-app-services / nginx-ingress-controller / index.ts View on Github external
);

// Create a Service for the kuard Deployment
const service = new k8s.core.v1.Service(name,
    {
        metadata: {labels: labels, namespace: config.appsNamespaceName},
        spec: {ports: [{ port: 8080, targetPort: "http" }], selector: labels},
    },
    {provider: provider}
);

// Export the Service name and public LoadBalancer endpoint
export const serviceName = service.metadata.name;

// Create the kuard Ingress
const ingress = new k8s.extensions.v1beta1.Ingress(name,
    {
        metadata: {
            labels: labels,
            namespace: config.appsNamespaceName,
            annotations: {"kubernetes.io/ingress.class": "nginx"},
        },
        spec: {
            rules: [
                {
                    host: "apps.example.com",
                    http: {
                        paths: [
                            {
                                path: "/",
                                backend: {
                                    serviceName: serviceName,
github pulumi / examples / aws-ts-eks-migrate-nodegroups / echoserver.ts View on Github external
export function createIngress(
    name: string,
    args: EchoserverIngressArgs,
): k8s.extensions.v1beta1.Ingress {
    // TODO(metral): change to k8s.networking.v1beta.Ingress
    // when EKS supports >= 1.14.
    return new k8s.extensions.v1beta1.Ingress(
        name,
        {
            metadata: {
                labels: args.labels,
                namespace: args.namespace,
                annotations: {
                    "kubernetes.io/ingress.class": args.ingressClass,
                },
            },
            spec: {
                rules: [
                    {
                        host: "apps.example.com",
                        http: {
                            paths: [
                                {

@pulumi/kubernetes

[![Build Status](https://travis-ci.com/pulumi/pulumi-kubernetes.svg?token=eHg7Zp5zdDDJfTjY8ejq&branch=master)](https://travis-ci.com/pulumi/pulumi-kubernetes) [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM

Apache-2.0
Latest version published 11 days ago

Package Health Score

92 / 100
Full package analysis