Skip to content

Instantly share code, notes, and snippets.

@hadoan
Created June 16, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadoan/a1af0861c44799fee05abd6e43801887 to your computer and use it in GitHub Desktop.
Save hadoan/a1af0861c44799fee05abd6e43801887 to your computer and use it in GitHub Desktop.
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
import { DeploymentConsts } from "../../common/consts";
export class ApiService {
New() {
const config = new pulumi.Config();
const service = new k8s.core.v1.Service(DeploymentConsts.TMDB_API, {
metadata: {
name: DeploymentConsts.TMDB_API
},
spec: {
selector: { app: DeploymentConsts.TMDB_API },
ports: [
{
protocol: "TCP",
port: 80,
targetPort: 80
}
],
type: 'LoadBalancer'
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment