Skip to content

Commit 000dd09

Browse files
committed
feat(example): devops-stack on scaleway
chore(scaleway): first example
1 parent 496f298 commit 000dd09

File tree

8 files changed

+511
-166
lines changed

8 files changed

+511
-166
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,14 @@ ehthumbs_vista.db
5555

5656
# Folder config file
5757
[Dd]esktop.ini
58+
.DS_STORE
59+
examples/*/secrets.yml
60+
examples/*/terraform.tfstate*
61+
examples/*/.terraform.lock.hcl
62+
examples/*/kubeconfig.yml
63+
examples/*/issue.txt
64+
examples/*/log.txt
65+
examples/*/*.png
66+
examples/*/*.html
67+
examples/*/issuers.yml
68+
**/*.swp

examples/scaleway/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Installation
2+
3+
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`.
4+
5+
Configure the stack by modifying `inputs.tfvars` (e.g: cluster\_name) and launch the terraform apply with:
6+
7+
```bash
8+
terraform init
9+
terraform apply -var-file inputs.tfvars
10+
```
11+
12+
## Usage
13+
Get the kubeconfig file and the domain name with the following commands:
14+
15+
```bash
16+
terraform output -raw kubeconfig_file > kubeconfig.json
17+
terraform output base_domain
18+
```
19+
20+
Your application are available at the following address: $APP\_NAME.apps.$CLUSTER\_NAME.$BASE\_DOMAIN.
21+
e.g: prometheus.apps.devops-stack.51-51-52-52.np.io
22+
23+
For authentication on oidc, users and password are available in the output:
24+
```bash
25+
terraform output passwords
26+
```
27+

examples/scaleway/inputs.tfvars

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ###################################################
2+
# Input for module which creates the scaleway cluster
3+
# ###################################################
4+
cluster_name = "devops-stack"
5+
cluster_description = "Devops-stack on cloud provider scaleway"
6+
cluster_tags = ["demo", "dev", "devops-stack", "test", ]
7+
cluster_type = "kapsule"
8+
kubernetes_version = "1.29.1"
9+
admission_plugins = ["PodNodeSelector", ]
10+
node_pools = {
11+
config1 = {
12+
node_type = "DEV1-L"
13+
size = 2
14+
min_size = 2
15+
max_size = 2
16+
autoscaling = true
17+
autohealing = true
18+
container_runtime = "containerd"
19+
wait_for_pool_ready = true
20+
}
21+
}
22+
23+
# #########################
24+
# Additional cluster config
25+
# #########################
26+
base_domain = "gs-fr-dev.camptocamp.com"
27+
lb_name = "devops-stack"
28+
zone = "fr-par-1"
29+
lb_type = "LB-S"
30+
31+
# Ingress
32+
ingress_enable_service_monitor = false
33+
34+
# Keycloak
35+
cluster_issuer = "ca-issuer"
36+
37+
# Cert-manager
38+
cert_manager_enable_service_monitor = false

0 commit comments

Comments
 (0)