0.2.0 • Published 6 months ago

@deployport/pulumi-temporal-k8s-nodejs v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

pulumi-temporal-k8s-nodejs

Deploy Temporal Open-Source Workflow Server and UI on Kubernetes using Pulumi Native Provider

Installation

npm i @deployport/pulumi-temporal-k8s-nodejs

Simple Usage

import { Configuration, Stack } from "@deployport/pulumi-temporal-k8s-nodejs";

const config = new Configuration({});
const stack = new Stack({ config });

Run the following commands with your values in order to set configurations for the current pulumi stack:

  • pulumi config set temporal:databaseHost <postgres database host>
  • pulumi config set temporal:databaseUsername <postgres user name>
  • pulumi config set --secret temporal:databasePassword which prompts for the database password to use

Make sure the user is owner of both temporal and temporal_visibility databases in the postgres server.

Advanced Usage

import * as kubernetes from "@pulumi/kubernetes";
import {
  ComponentName,
  Configuration,
  Stack,
} from "@deployport/pulumi-temporal-k8s-nodejs";

const config = new Configuration({
  rootName: new ComponentName("temporal"),
});
config.additionalNamespaces.push("fastns", "slowns");

const namespace = new kubernetes.core.v1.Namespace(
  "temporal",
  {
    metadata: {
      name: "temporal",
    },
  },
  {
    provider: kubernetesProvider,
  }
);

const opts = {
  provider: kubernetesProvider,
  namespace: namespace.metadata.name,
};
const stack = new Stack({ config }, opts);

License

MIT

0.2.0

6 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago