Skip to content

kol-ratner/dream

Repository files navigation

Kol Ratner's Dream Submission

Getting Started

  1. Fork https://github.com/kol-ratner/dream.git

  2. Add a Github PAT with the following permissions to your forked repo:

    • Contents: Read and Write
    • Metadata: Read-only
  3. Expose your newly generated PAT to your shell's environment like so:

export GITHUB_TOKEN=<your_token>
  1. Next generate a cluster and bootstrap it with flux by running terraform, **you will need to approve the prompt in your terminal:
cd terraform
export TF_VAR_home_directory="$HOME" \
export TF_VAR_github_token=$GITHUB_TOKEN \
terraform init; terraform apply
  1. Once Flux will then go ahead and install all of the internal kubernetes applications
    In order to view the state of the cluster you can run:
kubectl port-forward svc/weave-gitops -n flux-system 9001:9001
  1. You can now view the state of the cluster by visiting http://localhost:9001

Troubleshooting

Keep in mind that the slowest dependency to initialize is the mongodb cluster - give it some time - other apps which depend on it should wait for it to be ready.

You can check the status of the mongodb cluster by running:

kubectl get pods -n mongodb

You should to see the following when the cluster is healthy:

mongodb-cluster-0                            2/2     Running   0          7m23s
mongodb-cluster-1                            2/2     Running   0          5m24s
mongodb-cluster-2                            2/2     Running   0          2m57s
mongodb-cluster-arb-0                        2/2     Running   0          7m23s
mongodb-kubernetes-operator-65745686-gvh8v   1/1     Running   0          12m

So it's important to note that the store and bank are both deployed into the default namespace. They are configured to wait for dependencies to be deployed before they deploy.

but in case you see errors with container startup you can just wait until the depdencies are ready and then restart the application pods.

kubectl delete pods -n default --all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages