[meta] delete ramble-hard k8s experiment

pull/35/head
Alpha Chen 3 years ago
parent f8e69eba18
commit ce69de1f45

@ -1,2 +0,0 @@
.terraform
terraform.tfstate.d

@ -1,14 +0,0 @@
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: alpha@kejadlen.dev
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: issuer-account-key
solvers:
- http01:
ingress:
class: traefik-cert-manager

@ -1,24 +0,0 @@
terraform {
required_providers {
linode = {
source = "linode/linode"
version = "1.16.0"
}
}
}
provider "linode" {
# token = "$LINODE_TOKEN"
}
resource "linode_lke_cluster" "lke_cluster" {
label = "ramble-hard"
k8s_version = "1.20"
region = "us-west"
pool {
type = "g6-standard-1"
count = 1
}
}

@ -1,5 +0,0 @@
resource "local_file" "kubeconfig" {
depends_on = [linode_lke_cluster.lke_cluster]
filename = "kube.config.private"
content = base64decode(linode_lke_cluster.lke_cluster.kubeconfig)
}

@ -1,2 +0,0 @@
.terraform
terraform.tfstate.d

@ -1,86 +0,0 @@
terraform {
required_providers {
linode = {
source = "linode/linode"
version = "1.16.0"
}
helm = {
source = "hashicorp/helm"
version = "=2.1.0"
}
}
}
provider "helm" {
kubernetes {
config_path = "kube.config.private"
}
}
provider "kubernetes" {
config_path = "kube.config.private"
}
provider "linode" {
# token = "$LINODE_TOKEN"
}
resource "linode_lke_cluster" "ramble-hard" {
label = "ramble-hard"
k8s_version = "1.20"
region = "us-west"
pool {
type = "g6-standard-1"
count = 1
}
}
resource "kubernetes_namespace" "ingress-traefik-namespace" {
depends_on = [local_file.kubeconfig]
metadata {
annotations = {
name = "traefik"
}
name = "traefik"
}
}
resource "helm_release" "ingress-traefik" {
depends_on = [local_file.kubeconfig]
name = "traefik"
chart = "traefik"
repository = "https://helm.traefik.io/traefik"
namespace = "traefik"
values = [
file("traefik.yml")
]
}
resource "kubernetes_namespace" "cert-manager-namespace" {
depends_on = [local_file.kubeconfig]
metadata {
annotations = {
name = "cert-manager"
}
name = "cert-manager"
}
}
resource "helm_release" "cert-manager" {
depends_on = [local_file.kubeconfig]
name = "cert-manager"
chart = "cert-manager"
repository = "https://charts.jetstack.io"
namespace = "cert-manager"
set {
name = "installCRDs"
value = "true"
}
}

@ -1,8 +0,0 @@
env:
APP_ENV: production
# DB_HOST: monica-mariadb
mariadb:
enabled: true
primary:
persistence: true

@ -1,6 +0,0 @@
resource "local_file" "kubeconfig" {
depends_on = [linode_lke_cluster.ramble-hard]
filename = "kube.config.private"
file_permission = "0600"
content = base64decode(linode_lke_cluster.ramble-hard.kubeconfig)
}

@ -1,15 +0,0 @@
ingressRoute:
dashboard:
enabled: true
annotations: { traefik.ingress.kubernetes.io/router.tls: "true" }
ports:
web:
redirectTo: websecure
additionalArguments:
- "--log.level=INFO"
- "--entrypoints.websecure.http.tls"
- "--providers.kubernetesIngress.ingressClass=traefik-cert-manager"
- "--ping"
- "--metrics.prometheus"

@ -1,15 +0,0 @@
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: traefik-dashboard-cert
namespace: traefik
labels:
use-http01-solver: "true"
spec:
commonName: ramble-hard.kejadlen.dev
secretName: traefik-dashboard-cert
dnsNames:
- ramble-hard.kejadlen.dev
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
Loading…
Cancel
Save