From 3d79b6c85bcbe7b49eb5ac6cd69865c5f4752305 Mon Sep 17 00:00:00 2001 From: Vivian Rook Date: Fri, 1 Sep 2023 13:40:24 -0400 Subject: [PATCH] Pulumi Bug: T345387 --- pulumi/Pulumi.paws-codfw.yaml | 13 +++++++++++++ pulumi/Pulumi.yaml | 35 +++++++++++++++++++++++++++++++++++ pulumi/README.md | 2 ++ 3 files changed, 50 insertions(+) create mode 100644 pulumi/Pulumi.paws-codfw.yaml create mode 100644 pulumi/Pulumi.yaml create mode 100644 pulumi/README.md diff --git a/pulumi/Pulumi.paws-codfw.yaml b/pulumi/Pulumi.paws-codfw.yaml new file mode 100644 index 00000000..877e805c --- /dev/null +++ b/pulumi/Pulumi.paws-codfw.yaml @@ -0,0 +1,13 @@ +--- + +encryptionsalt: v1:OmSkg8q3Cf0=:v1:fdlfGHhWwjqwfflB:B693Z4nQ//26jsrYR8LmzGaYcXCzEA== +config: + paws:name: dev + paws:workers: 2 + paws:volume-size: 20 + paws:external-network-id: wan-transport-codfw + paws:fixed-subnet: cloud-instances2-b-codfw + paws:fixed-network: cloud-instances2-b-codfw + paws:worker-flavor: g3.cores1.ram2.disk20 + paws:control-flavor: g3.cores1.ram2.disk20 + paws:image-name: Fedora-CoreOS-34 diff --git a/pulumi/Pulumi.yaml b/pulumi/Pulumi.yaml new file mode 100644 index 00000000..25470c7b --- /dev/null +++ b/pulumi/Pulumi.yaml @@ -0,0 +1,35 @@ +--- + +name: paws +runtime: yaml +description: paws pumuli +outputs: + kubeconfig: ${cluster1.kubeconfig} +resources: + cluster1: + type: openstack:containerinfra:Cluster + properties: + clusterTemplateId: ${clustertemplate1} + masterCount: 1 + name: paws-dev-pulumi + nodeCount: ${workers} + clustertemplate1: + type: openstack:containerinfra:ClusterTemplate + properties: + coe: kubernetes + dnsNameserver: 8.8.8.8 + dockerStorageDriver: overlay2 + dockerVolumeSize: ${volume-size} + externalNetworkId: ${external-network-id} + fixedSubnet: ${fixed-subnet} + fixedNetwork: lan-flat-cloudinstances2b + flavor: ${worker-flavor} + floatingIpEnabled: false + image: ${image-name} + labels: + kube_tag: "v1.23.15-rancher1-linux-amd64" + hyperkube_prefix: "docker.io/rancher/" + cloud_provider_enabled: "true" + masterFlavor: ${control-flavor} + name: paws-${name}-pulumi + networkDriver: flannel diff --git a/pulumi/README.md b/pulumi/README.md new file mode 100644 index 00000000..a78fa10b --- /dev/null +++ b/pulumi/README.md @@ -0,0 +1,2 @@ +to get kube config file: +pulumi stack output kubeconfig --show-secrets | jq -r '.raw_config'