From f9f3671863dc6eeb250438e1d1f5fad247a706ba Mon Sep 17 00:00:00 2001 From: sljeff Date: Tue, 19 Sep 2023 14:46:57 +0800 Subject: [PATCH] rm crdb --- crdb/dev/crdb.yaml | 21 --------------------- crdb/dev/lb.yaml | 29 ----------------------------- crdb/prod/crdb.yaml | 35 ----------------------------------- crdb/prod/lb.yaml | 29 ----------------------------- crdb/prod/route.yaml | 25 ------------------------- 5 files changed, 139 deletions(-) delete mode 100644 crdb/dev/crdb.yaml delete mode 100644 crdb/dev/lb.yaml delete mode 100644 crdb/prod/crdb.yaml delete mode 100644 crdb/prod/lb.yaml delete mode 100644 crdb/prod/route.yaml diff --git a/crdb/dev/crdb.yaml b/crdb/dev/crdb.yaml deleted file mode 100644 index e100f6a..0000000 --- a/crdb/dev/crdb.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: crdb.cockroachlabs.com/v1alpha1 -kind: CrdbCluster -metadata: - name: cockroachdb -spec: - dataStore: - pvc: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: "40Gi" - volumeMode: Filesystem - storageClassName: alicloud-disk-ssd - tlsEnabled: true - image: - name: cockroachdb/cockroach:v23.1.5 - nodes: 3 - additionalLabels: - crdb: default diff --git a/crdb/dev/lb.yaml b/crdb/dev/lb.yaml deleted file mode 100644 index f1fcd9e..0000000 --- a/crdb/dev/lb.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: cockroachdb-lb-internal - namespace: default - annotations: - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-name: "dev-crdb-internal-lb" - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: intranet - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-spec: "slb.s1.small" -spec: - ports: - - name: grpc - port: 26258 - protocol: TCP - targetPort: 26258 - - name: http - port: 443 - protocol: TCP - targetPort: 8080 - - name: sql - port: 26257 - protocol: TCP - targetPort: 26257 - selector: - app.kubernetes.io/component: database - app.kubernetes.io/instance: cockroachdb - app.kubernetes.io/name: cockroachdb - crdb: default - type: LoadBalancer diff --git a/crdb/prod/crdb.yaml b/crdb/prod/crdb.yaml deleted file mode 100644 index 37b6c4d..0000000 --- a/crdb/prod/crdb.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: crdb.cockroachlabs.com/v1alpha1 -kind: CrdbCluster -metadata: - name: cockroachdb -spec: - dataStore: - pvc: - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: "7000Gi" - volumeMode: Filesystem - storageClassName: alicloud-disk-essd - resources: - requests: - cpu: 40000m - memory: 70000Mi - limits: - cpu: 51000m - memory: 100000Mi - tlsEnabled: true - image: - name: cockroachdb/cockroach:v23.1.8 - nodes: 5 - additionalLabels: - crdb: default - nodeSelector: - rss3.io/usage: crdb - tolerations: - - key: "rss3.io/usage" - operator: "Equal" - value: "crdb" - effect: "NoSchedule" diff --git a/crdb/prod/lb.yaml b/crdb/prod/lb.yaml deleted file mode 100644 index 18848df..0000000 --- a/crdb/prod/lb.yaml +++ /dev/null @@ -1,29 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: cockroachdb-lb-internal - namespace: default - annotations: - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-name: "crdb-test-internal-lb" - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: intranet - service.beta.kubernetes.io/alibaba-cloud-loadbalancer-spec: "slb.s1.small" -spec: - ports: - - name: grpc - port: 26258 - protocol: TCP - targetPort: 26258 - - name: http - port: 443 - protocol: TCP - targetPort: 8080 - - name: sql - port: 26257 - protocol: TCP - targetPort: 26257 - selector: - app.kubernetes.io/component: database - app.kubernetes.io/instance: cockroachdb - app.kubernetes.io/name: cockroachdb - crdb: default - type: LoadBalancer diff --git a/crdb/prod/route.yaml b/crdb/prod/route.yaml deleted file mode 100644 index d8f4e81..0000000 --- a/crdb/prod/route.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: cockroachdb - namespace: default -spec: - entryPoints: - - web - - websecure - routes: - - kind: Rule - match: Host(`crdb.kindjeff.com`) - services: - - name: cockroachdb-public - port: 8080 - scheme: https - serversTransport: cockroachdb ---- -apiVersion: traefik.io/v1alpha1 -kind: ServersTransport -metadata: - name: cockroachdb - namespace: default -spec: - insecureSkipVerify: true