-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(example): devops-stack on scaleway
chore(scaleway): first example
- Loading branch information
Showing
8 changed files
with
511 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Installation | ||
|
||
Add your credentials to launch the project. At least the following environement variables are required: `SCW_ACCESS_KEY,SCW_ACCESS_KEY,SCW_DEFAULT_ORGANIZATION_ID,SCW_DEFAULT_PROJECT_ID,SCW_DEFAULT_PROJECT_ID`. | ||
|
||
Configure the stack by modifying `inputs.tfvars` (e.g: cluster\_name) and launch the terraform apply with: | ||
|
||
```bash | ||
terraform init | ||
terraform apply -var-file inputs.tfvars | ||
``` | ||
|
||
## Usage | ||
Get the kubeconfig file and the domain name with the following commands: | ||
|
||
```bash | ||
terraform output -raw kubeconfig_file > kubeconfig.json | ||
terraform output base_domain | ||
``` | ||
|
||
Your application are available at the following address: $APP\_NAME.apps.$CLUSTER\_NAME.$BASE\_DOMAIN. | ||
e.g: prometheus.apps.devops-stack.51-51-52-52.np.io | ||
|
||
For authentication on oidc, users and password are available in the output: | ||
```bash | ||
terraform output passwords | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ################################################### | ||
# Input for module which creates the scaleway cluster | ||
# ################################################### | ||
cluster_name = "devops-stack" | ||
cluster_description = "Devops-stack on cloud provider scaleway" | ||
cluster_tags = ["demo", "dev", "devops-stack", "test", ] | ||
cluster_type = "kapsule" | ||
kubernetes_version = "1.29.1" | ||
admission_plugins = ["PodNodeSelector", ] | ||
node_pools = { | ||
config1 = { | ||
node_type = "DEV1-L" | ||
size = 2 | ||
min_size = 2 | ||
max_size = 2 | ||
autoscaling = true | ||
autohealing = true | ||
container_runtime = "containerd" | ||
wait_for_pool_ready = true | ||
} | ||
} | ||
|
||
# ######################### | ||
# Additional cluster config | ||
# ######################### | ||
base_domain = "gs-fr-dev.camptocamp.com" | ||
lb_name = "devops-stack" | ||
zone = "fr-par-1" | ||
lb_type = "LB-S" | ||
|
||
# Ingress | ||
ingress_enable_service_monitor = false | ||
|
||
# Keycloak | ||
cluster_issuer = "ca-issuer" | ||
|
||
# Cert-manager | ||
cert_manager_enable_service_monitor = false |
Oops, something went wrong.