This directory contains the deployment configurations for the Graph Webhooks service, Pulumi is used to deploy the infrastructure.
- Install Pulumi CLI
- Install
az
CLI - Install
helm
CLI- Install schema plugin
helm plugin install https://github.com/losisin/helm-values-schema-json.git
- Install schema plugin
pulumi login
to your Pulumi account and make sure you are part of theguild.- To deploy to
dev
:pulumi up --stack theguild/dev
NOTE: If you are an ADMIN DO NOT RUN pulumi destroy
Pulumi is an open source infrastructure as a code tool for creating, deploying and managing cloud infrastructure.
Pulumi is a cross-platform SDK that can also integrate any Terraform module. Having Pulumi with TypeScript makes it easier to manage the infrastructure as a code compared to Terraform where we need to learn a new language.
Yes! Pulumi helps to manage secrets and encrypts them. To encrypt a secret you can use
pulumi set secret HAHA --secret
. You can read more how secrets are managed in
Pulumi Architecture docs.
- Grab the
kubeconfig
for the cluster as follows:pulumi stack output kubeconfig --show-secrets > kubeconfig
- Set this environment variable for your local to use the
kubeconfig
to connect with clusterexport KUBECONFIG=$PWD/kubeconfig
- Now you can run
kubectl get nodes
to see if you can see the nodes in the cluster.