From 260376400ffbb0f241ad6d47918b051a28e0614c Mon Sep 17 00:00:00 2001 From: outductor Date: Mon, 16 Sep 2024 23:00:18 +0900 Subject: [PATCH] Delete backstage --- .../cloudflared-tunnel-exits/http-exits.yaml | 5 -- .../app-of-other-apps/backstage.yaml | 65 ------------------- .../seichi-kubernetes/apps/root/projects.yaml | 21 ------ terraform/onp_cluster_minecraft_secrets.tf | 35 ---------- terraform/onp_cluster_namespaces.tf | 6 -- 5 files changed, 132 deletions(-) delete mode 100644 seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/backstage.yaml diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cloudflared-tunnel-exits/http-exits.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cloudflared-tunnel-exits/http-exits.yaml index dcca93862..5bc73014d 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cloudflared-tunnel-exits/http-exits.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cloudflared-tunnel-exits/http-exits.yaml @@ -100,11 +100,6 @@ spec: external-hostname: argo-wf-webhook.onp-k8s.admin.seichi.click internal-authority: "argo-wf-proxy.seichi-minecraft:80" - # k8s 上の Backstage - - name: backstage - external-hostname: backstage.onp-k8s.admin.seichi.click - internal-authority: "backstage.backstage:7007" - template: metadata: name: "cloudflared-tunnel-http-exit--{{name}}" diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/backstage.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/backstage.yaml deleted file mode 100644 index 8424897c5..000000000 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/app-of-other-apps/backstage.yaml +++ /dev/null @@ -1,65 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: backstage - namespace: argocd -spec: - project: backstage - source: - chart: backstage - repoURL: https://backstage.github.io/charts - targetRevision: 1.9.6 - helm: - releaseName: backstage - values: | - backstage: - replicas: 1 - image: - # Backstageのバージョン自体はHelmで管理されてないので自分で更新する必要がある - tag: 1.29.2 - pullPolicy: IfNotPresent - appConfig: - app: - baseUrl: https://backstage.onp-k8s.admin.seichi.click - backend: - baseUrl: https://backstage.onp-k8s.admin.seichi.click - organization: - name: GiganticMinecraft - auth: - environment: development - providers: - github: - development: - clientId: ${AUTH_GITHUB_CLIENT_ID} - clientSecret: ${AUTH_GITHUB_CLIENT_SECRET} - signIn: - resolvers: - # Matches the GitHub username with the Backstage user entity name. - # See https://backstage.io/docs/auth/github/provider#resolvers for more resolvers. - - resolver: usernameMatchingUserEntityName - # -- PostgreSQL [chart configuration](https://github.com/bitnami/charts/blob/master/bitnami/postgresql/values.yaml) - # @default -- See below - postgresql: - enabled: true - existingSecret: postgres-password - auth: - username: bn_backstage - secretKeys: - adminPasswordKey: admin-password - userPasswordKey: user-password - replicationPasswordKey: replication-password - architecture: replication - metrics: - serviceMonitor: - enabled: true - labels: - release: prometheus - destination: - server: https://kubernetes.default.svc - namespace: backstage - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - ServerSideApply=true diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/root/projects.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/root/projects.yaml index 32fc4a69b..c6f0a5d3e 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/root/projects.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/root/projects.yaml @@ -178,24 +178,3 @@ spec: clusterResourceWhitelist: - group: "*" kind: "*" ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - name: backstage - namespace: argocd -spec: - description: The project of production minecraft system for the seichi-network - sourceRepos: - - "*" - destinations: - - namespace: backstage - server: https://kubernetes.default.svc - # Application 及び ApplicationSet リソースは - # argocd namespace に置かないとArgoCDに認識されないため、 - # argocd namespace へのデプロイも許可する。 - - namespace: argocd - server: https://kubernetes.default.svc - clusterResourceWhitelist: - - group: "*" - kind: "*" diff --git a/terraform/onp_cluster_minecraft_secrets.tf b/terraform/onp_cluster_minecraft_secrets.tf index 43e93a5ab..c53fcae58 100644 --- a/terraform/onp_cluster_minecraft_secrets.tf +++ b/terraform/onp_cluster_minecraft_secrets.tf @@ -131,41 +131,6 @@ resource "kubernetes_secret" "onp_minecraft_debug_mariadb_root_password" { type = "Opaque" } -resource "random_password" "backstage_admin_password" { - length = 16 - special = true - override_special = "!#$%&*()-_=+[]{}<>:?" -} - -resource "random_password" "backstage_user_password" { - length = 16 - special = true - override_special = "!#$%&*()-_=+[]{}<>:?" -} - -resource "random_password" "backstage_replication_password" { - length = 16 - special = true - override_special = "!#$%&*()-_=+[]{}<>:?" -} - -resource "kubernetes_secret" "backstage_postgres_password" { - depends_on = [kubernetes_namespace.backstage] - - metadata { - name = "postgres-password" - namespace = "backstage" - } - - data = { - "admin-password" = random_password.backstage_admin_password.result - "user-password" = random_password.backstage_user_password.result - "replication-password" = random_password.backstage_replication_password.result - } - - type = "Opaque" -} - resource "helm_release" "onp_minecraft_debug_minio_secrets" { depends_on = [kubernetes_namespace.onp_seichi_debug_minecraft] diff --git a/terraform/onp_cluster_namespaces.tf b/terraform/onp_cluster_namespaces.tf index 49a2e9a02..e6aea4c33 100644 --- a/terraform/onp_cluster_namespaces.tf +++ b/terraform/onp_cluster_namespaces.tf @@ -63,9 +63,3 @@ resource "kubernetes_namespace" "minio" { name = "minio" } } - -resource "kubernetes_namespace" "backstage" { - metadata { - name = "backstage" - } -}