-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f83240
commit f35e7e7
Showing
12 changed files
with
161 additions
and
32 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,9 @@ | ||
output "traefik_dashboard_password" { | ||
value = random_password.traefik_dashboard_password.result | ||
sensitive = true | ||
} | ||
|
||
output "traefik_dashboard_username" { | ||
value = "admin" | ||
sensitive = true | ||
} |
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,12 @@ | ||
terraform { | ||
required_providers { | ||
helm = { | ||
source = "hashicorp/helm" | ||
version = ">= 2.12.1" | ||
} | ||
kubectl = { | ||
source = "gavinbunney/kubectl" | ||
version = ">= 1.14.0" | ||
} | ||
} | ||
} |
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
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,8 @@ | ||
terraform { | ||
required_providers { | ||
oci = { | ||
source = "oracle/oci" | ||
version = ">= 5.30.0" | ||
} | ||
} | ||
} |
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,9 @@ | ||
output "traefik_dashboard_username" { | ||
value = module.nlb.traefik_dashboard_username | ||
sensitive = true | ||
} | ||
|
||
output "traefik_dashboard_password" { | ||
value = module.nlb.traefik_dashboard_password | ||
sensitive = true | ||
} |
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,8 @@ | ||
terraform { | ||
required_providers { | ||
oci = { | ||
source = "oracle/oci" | ||
version = ">= 5.30.0" | ||
} | ||
} | ||
} |
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,33 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: dashboard-authsecret | ||
namespace: traefik-loadbalancer | ||
type: kubernetes.io/basic-auth | ||
data: | ||
username: ${traefik_dashboard_username} | ||
password: ${traefik_dashboard_password} | ||
--- | ||
apiVersion: traefik.io/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: traefik-dashboard-auth | ||
namespace: traefik-loadbalancer | ||
spec: | ||
basicAuth: | ||
secret: dashboard-authsecret | ||
--- | ||
apiVersion: traefik.io/v1alpha1 | ||
kind: IngressRoute | ||
metadata: | ||
name: traefik-dashboard | ||
namespace: traefik-loadbalancer | ||
spec: | ||
routes: | ||
- match: Host(`traefik.varghacsongor.hu`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`)) | ||
kind: Rule | ||
services: | ||
- name: api@internal | ||
kind: TraefikService | ||
middlewares: | ||
- name: traefik-dashboard-auth |
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 |
---|---|---|
|
@@ -870,30 +870,34 @@ persistence: | |
|
||
# -- Certificates resolvers configuration | ||
certResolvers: {} | ||
#letsencrypt: | ||
# # for challenge options cf. https://doc.traefik.io/traefik/https/acme/ | ||
# email: [email protected] | ||
# dnsChallenge: | ||
# # also add the provider's required configuration under env | ||
# # or expand then from secrets/configmaps with envfrom | ||
# # cf. https://doc.traefik.io/traefik/https/acme/#providers | ||
# provider: cloudflare | ||
# # add futher options for the dns challenge as needed | ||
# # cf. https://doc.traefik.io/traefik/https/acme/#dnschallenge | ||
# delayBeforeCheck: 30 | ||
# resolvers: | ||
# - 1.1.1.1 | ||
# - 8.8.8.8 | ||
# tlsChallenge: true | ||
# httpChallenge: | ||
# entryPoint: "web" | ||
# # It has to match the path with a persistent volume | ||
# storage: /data/acme.json | ||
# env: | ||
# - name: CLOUDFLARE_EMAIL | ||
# value: "" | ||
# - name: CLOUDFLARE_API_KEY | ||
# value: "" | ||
|
||
%{ if letsencrypt } | ||
letsencrypt: | ||
# for challenge options cf. https://doc.traefik.io/traefik/https/acme/ | ||
email: ${certmanager_email_address} | ||
dnsChallenge: | ||
# also add the provider's required configuration under env | ||
# or expand then from secrets/configmaps with envfrom | ||
# cf. https://doc.traefik.io/traefik/https/acme/#providers | ||
provider: cloudflare | ||
# add futher options for the dns challenge as needed | ||
# cf. https://doc.traefik.io/traefik/https/acme/#dnschallenge | ||
# delayBeforeCheck: 30 | ||
resolvers: | ||
- 1.1.1.1 | ||
- 1.0.0.2 | ||
|
||
tlsChallenge: true | ||
httpChallenge: | ||
entryPoint: "web" | ||
# It has to match the path with a persistent volume | ||
storage: /data/acme.json | ||
env: | ||
- name: CLOUDFLARE_EMAIL | ||
value: ${cloudflare_email_address} | ||
- name: CLOUDFLARE_API_KEY | ||
value: ${cloudflare_api_key} | ||
%{ endif } | ||
|
||
# -- If hostNetwork is true, runs traefik in the host network namespace | ||
# To prevent unschedulabel pods due to port collisions, if hostNetwork=true | ||
|
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