Skip to content

Commit

Permalink
Pulumi
Browse files Browse the repository at this point in the history
Bug: T345387
  • Loading branch information
vivian-rook committed Sep 6, 2023
1 parent 1b3c59a commit 3d79b6c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pulumi/Pulumi.paws-codfw.yaml
Original file line number Diff line number Diff line change
@@ -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
35 changes: 35 additions & 0 deletions pulumi/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions pulumi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
to get kube config file:
pulumi stack output kubeconfig --show-secrets | jq -r '.raw_config'

0 comments on commit 3d79b6c

Please sign in to comment.