821 B
821 B
Kubernetes multimodule sample
This sample deploys two services behind a Kubernetes ingress.
Setup instructions
- Make sure you have a working Kubernetes environment. Use a simple command such as kubectl get nodes and check its output. If you get a list of nodes that contains at least one ready module, you're good to go
- Download the Terraform package for your environment from Hashicorp's site. Unzip it and put the terraform binary somewhere in the OS's PATH.
- Open a command prompt and cd into this folder
- Run the following commands: ''' $ terraform init $ terraform apply -auto-approve '''
- Wait until Terraform create all resources and run kubectl get services. The output should now have a few services.
- Run terraform destroy to remove the previously creates namespace.