Skip to content

Commit

Permalink
fix crdb
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Oct 26, 2023
1 parent 7fbf13b commit 5964e7b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application_set.tf
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ resource "argocd_application_set" "crdb" {

destination {
server = "{{url}}"
namespace = "guardian"
namespace = "default"
}

}
Expand Down
4 changes: 2 additions & 2 deletions crdb/prod/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ spec:
- kind: Rule
match: Host(`crdb.prod.nsl.xyz`)
services:
- name: cockroachdb-public
port: 8080
- name: cockroachdb-lb-internal
port: 443
scheme: https
serversTransport: cockroachdb
---
Expand Down
34 changes: 34 additions & 0 deletions crdb/prod/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Service
metadata:
name: cockroachdb-lb-internal
namespace: default
annotations:
service.beta.kubernetes.io/alibaba-cloud-loadbalancer-address-type: intranet
service.beta.kubernetes.io/alibaba-cloud-loadbalancer-name: crdb-test-internal-lb
service.beta.kubernetes.io/alibaba-cloud-loadbalancer-spec: slb.s1.small
spec:
ports:
- name: grpc
protocol: TCP
port: 26258
targetPort: 26258
- name: http
protocol: TCP
port: 8080
targetPort: 8080
- name: https
protocol: TCP
port: 443
targetPort: 443
- name: sql
protocol: TCP
port: 26257
targetPort: 26257
selector:
app.kubernetes.io/component: database
app.kubernetes.io/instance: cockroachdb
app.kubernetes.io/name: cockroachdb
crdb: default
type: ExternalName
externalName: crdb-internal.rss3.io

0 comments on commit 5964e7b

Please sign in to comment.