-
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
c945623
commit dd07b2b
Showing
21 changed files
with
193 additions
and
26 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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
applications/environments/nas01/cert-manager/application.libsonnet
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 @@ | ||
import '../../../base/cert-manager/application.libsonnet' |
1 change: 1 addition & 0 deletions
1
applications/environments/nas01/external-secrets/application.libsonnet
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 @@ | ||
import '../../../base/external-secrets/application.libsonnet' |
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 @@ | ||
[ | ||
import 'argocd/application.libsonnet', | ||
import 'external-secrets/application.libsonnet', | ||
import 'cert-manager/application.libsonnet', | ||
import 'prometheus/application.libsonnet', | ||
import 'tailscale-operator/application.libsonnet', | ||
import 'traefik/application.libsonnet', | ||
] |
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,19 @@ | ||
local apps = import 'imports.libsonnet'; | ||
|
||
[ | ||
app | ||
.withAppNamespace('argocd') | ||
.withDestinationServer('https://kubernetes.default.svc') | ||
.withExtVars({ | ||
ingressHost: '%s-.nas01.home.macro.network' % app.metadata.name, | ||
ingressSuffix: '.nas01.home.macro.network', | ||
ingressAnnotations: ||| | ||
'traefik.ingress.kubernetes.io/router.entrypoints': 'websecure' | ||
|||, | ||
}) | ||
.withBase( | ||
repoURL='https://github.com/MacroPower/homelab', | ||
targetRevision='main', | ||
) | ||
for app in apps | ||
] |
1 change: 1 addition & 0 deletions
1
applications/environments/nas01/prometheus/application.libsonnet
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 @@ | ||
import '../../../base/prometheus/application.libsonnet' |
2 changes: 1 addition & 1 deletion
2
.../tailscale-operator/application.libsonnet → .../tailscale-operator/application.libsonnet
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
local app = import '../../../base/tailscale-operator/application.libsonnet'; | ||
|
||
app.withChartParams({ | ||
'operatorConfig.hostname': 'tailscale-operator-store01.home.macro.network', | ||
'operatorConfig.hostname': 'tailscale-operator.nas01.home.macro.network', | ||
}) |
22 changes: 22 additions & 0 deletions
22
applications/environments/nas01/traefik/application.libsonnet
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,22 @@ | ||
local app = import '../../../base/traefik/application.libsonnet'; | ||
|
||
app.withBasePath('applications/environments/nas01/traefik').withChartParams({ | ||
'tlsOptions.default.clientAuth': 'null', | ||
}).withChartValues(||| | ||
image: | ||
tag: v3.0.0-beta4 | ||
tracing: | ||
openTelemetry: | ||
address: main-collector.opentelemetry.svc:4317 | ||
grpc: true | ||
insecure: true | ||
env: | ||
- name: HOST_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: TRAEFIK_TRACING_OPENTELEMETRY_ADDRESS | ||
value: "$(HOST_IP):4317" | ||
|||) |
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,19 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: traefik-selfsigned-issuer | ||
spec: | ||
selfSigned: {} | ||
|
||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: traefik-cert | ||
spec: | ||
secretName: traefik-cert | ||
issuerRef: | ||
kind: Issuer | ||
name: traefik-selfsigned-issuer | ||
dnsNames: | ||
- "*.home.macro.network" |
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,5 @@ | ||
local dashboard_ingresss = import '../../../base/traefik/dashboard_ingress.libsonnet'; | ||
local ns = import '../../../base/traefik/namespace.libsonnet'; | ||
local issuer = std.parseYaml(importstr 'issuer.yaml'); | ||
|
||
[ns] + issuer + dashboard_ingresss |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,3 @@ | ||
terraform output -raw kubeconfig > kubeconfig.yaml | ||
|
||
KUBECONFIG=kubeconfig.yaml:~/.kube/config kubectl config view --flatten > ~/.kube/config |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
terraform { | ||
required_providers {} | ||
required_providers { | ||
remote = { | ||
source = "tenstad/remote" | ||
version = "0.1.2" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
variable "name" { | ||
variable "fqdn" { | ||
type = string | ||
} | ||
|
||
|
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