Created
June 16, 2020 14:45
-
-
Save hadoan/a1af0861c44799fee05abd6e43801887 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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