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
const mariadbSvc = new k8s.core.v1.Service("mariadb", { | |
metadata: { | |
name: "mariadb", | |
}, | |
spec: { | |
type: "ClusterIP", | |
clusterIP: "None", | |
ports: [ | |
{ | |
name: "mysql", |
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
const mariadb = new k8s.apps.v1.StatefulSet("mariadb", { | |
spec: { | |
selector: { | |
matchLabels: { | |
app: "mariadb", | |
release: "example", | |
component: "master" | |
} | |
}, | |
serviceName: "mariadb", |
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
spec: { | |
serviceAccountName: "default", | |
securityContext: { | |
fsGroup: 1001, | |
runAsUser: 1001 | |
}, | |
affinity: { | |
podAntiAffinity: { | |
preferredDuringSchedulingIgnoredDuringExecution: [ | |
{ |
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
volumeClaimTemplates: [ | |
{ | |
metadata: { | |
name: "data", | |
labels: { | |
app: "mariadb", | |
component: "master", | |
release: "example", | |
} | |
}, |
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
volumeClaimTemplates: [ | |
{ | |
metadata: { | |
name: "data", | |
labels: { | |
app: "mariadb", | |
component: "master", | |
release: "example", | |
} | |
}, |
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
containers: [ | |
// skip container configuration | |
livenessProbe: { | |
exec: { | |
command: ["sh", "-c", "exec mysqladmin status -uroot -p$MARIADB_ROOT_PASSWORD"], | |
}, | |
initialDelaySeconds: 120, | |
periodSeconds: 10, | |
timeoutSeconds: 1, |
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 gcp from "@pulumi/gcp"; | |
import * as k8s from "@pulumi/kubernetes"; | |
import * as pulumi from "@pulumi/pulumi"; | |
const name = "helloworld"; | |
const config = new pulumi.Config(); | |
export const masterVersion = config.get("masterVersion") || | |
gcp.container.getEngineVersions().then(it => it.latestMasterVersion); |
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
{ | |
"info": { | |
"_postman_id": "c2accb64-9814-4d66-85c8-389413cc012e", | |
"name": "Automation API - infrastructure over HTTP", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Update hello website", | |
"request": { |
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 { InlineProgramArgs, LocalWorkspace } from "@pulumi/pulumi/x/automation"; | |
import * as aws from "@pulumi/aws"; | |
import * as awsx from "@pulumi/awsx"; | |
import * as pulumi from "@pulumi/pulumi"; | |
import * as mysql from "mysql"; | |
const process = require('process'); | |
const args = process.argv.slice(2); | |
let destroy = false; |
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
// Copyright 2016-2017, Pulumi Corporation. All rights reserved. | |
import * as aws from "@pulumi/aws"; | |
import * as awsx from "@pulumi/awsx"; | |
import * as pulumi from "@pulumi/pulumi"; | |
import * as docker from "@pulumi/docker"; | |
const opts = { }; | |
export class ContainerFunction extends pulumi.ComponentResource { |