Skip to content

Commit

Permalink
Merge pull request #12 from debenstack/dev
Browse files Browse the repository at this point in the history
Documentation & Minor Refactors
  • Loading branch information
bensoer authored Jun 13, 2024
2 parents cf40eaa + 8c729f6 commit e6c14aa
Show file tree
Hide file tree
Showing 8 changed files with 3,694 additions and 38 deletions.
37 changes: 14 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ K8 Stack for debenstack
terraform init
terraform apply
```

4. Set your kubectl config by fetching your cluster name from the Terraform outputs and passing it to `doctl`
```bash
doctl kubernetes cluster kubeconfig save $(terraform output -raw cluster_name)
Expand All @@ -37,6 +36,9 @@ Below is a table of each piece installed in my cluster at the moment, and what r
| Loki| Observability - Logging Database | |
| Promtail | Observability - Container Stdout/Stderr Log Scraping | Forwards to Loki |
| Vault | Secrets Manager | Coming Soon |
| Postgres Operator | Postgres Database / Cluster Provider | Handling Postgres Databases for my personal apps |
| MySQL Operator | MySQL Database / Cluster Provider | Coming Soon |
| MongoDB Operator | MongoDB Database / Cluster Provider | Coming Soon |
Below now is another table of the tech being used for managing and configuring my Kubernetes cluster:
Expand All @@ -46,41 +48,30 @@ Below now is another table of the tech being used for managing and configuring m
| Terraform | IaC Service | |
| Github | Code Host | |
| Github Actions | Code Linting / Verification | |
| Cloudflare | DNS Provider | |
# Some Future Goals
* Cloud Agnostic Deployment - Using terraform, be able to swap out which Cloud Provider you host this stack on with a parameter
* Settings to Enable/Disable Database Operators
# Developer Resources
* https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/kubernetes_cluster
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#exec-plugins
* https://github.com/digitalocean/terraform-provider-digitalocean/tree/main/examples/kubernetes
* https://docs.digitalocean.com/products/kubernetes/
* https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/examples/kubernetes/kubernetes-config/main.tf
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
# Developer Resources
See each module for README for module specific resources and documentation. The following is more general documentation and guides I used for setting up this cluster properly
## Kubernetes
* https://docs.digitalocean.com/products/kubernetes/
* https://github.com/debenstack/k8s-bootstrapper/blob/main/infrastructure/terraform/README.md
## Helm
* https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release#example-usage---chart-repository
## Cert Manager
* https://cert-manager.io/docs/concepts/issuer/
* https://traefik.io/blog/secure-web-applications-with-traefik-proxy-cert-manager-and-lets-encrypt/
* https://letsencrypt.org/docs/staging-environment/?ref=traefik.io
* https://artifacthub.io/packages/helm/cert-manager/cert-manager
## Traefik Ingress
* https://github.com/bluepuma77/traefik-best-practice/blob/main/docker-traefik-dashboard-letsencrypt/docker-compose.yml
* https://go-acme.github.io/lego/dns/cloudflare/
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/secret
* https://github.com/mrunkel/devtools/blob/master/docker-compose.yml
* https://www.reddit.com/r/Traefik/comments/104anfb/issues_generating_letsencrypt_certs_with/?onetap_auto=true&one_tap=true
* https://artifacthub.io/packages/helm/traefik/traefik/9.2.0
* https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml?ref=traefik.io
## Terraform
* https://developer.hashicorp.com/terraform/tutorials/configuration-language/dependencies
* https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/kubernetes_cluster
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#exec-plugins
* https://github.com/digitalocean/terraform-provider-digitalocean/tree/main/examples/kubernetes
* https://github.com/digitalocean/terraform-provider-digitalocean/blob/main/examples/kubernetes/kubernetes-config/main.tf
* https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
2 changes: 1 addition & 1 deletion modules/k8config/modules/argocd/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "helm_release" "argocd" {
dependency_update = true

values = [
file("${abspath(path.module)}/res/argocd-values.yaml")
file("${abspath(path.module)}/res/argocd-values2.yaml")
]
}

Expand Down
Loading

0 comments on commit e6c14aa

Please sign in to comment.