Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZhangQD committed Mar 23, 2020
1 parent ccfa3eb commit 1e0fd75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deploy/aws/manifests/db-monitor.yaml.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: pingcap.com/v1alpha1
kind: TidbMonitor
metadata:
name: db
name: DEFAULT_CLUSTER_NAME
spec:
alertmanagerURL: ""
annotations: {}
Expand Down
13 changes: 6 additions & 7 deletions deploy/aws/manifests/db.yaml.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apiVersion: pingcap.com/v1alpha1
kind: TidbCluster
metadata:
name: db
namespace: db
name: DEFAULT_CLUSTER_NAME
spec:
configUpdateStrategy: RollingUpdate
enableTLSCluster: false
Expand All @@ -21,7 +20,7 @@ spec:
- zone
max-replicas: 3
nodeSelector:
dedicated: db-pd
dedicated: DEFAULT_CLUSTER_NAME-pd
podSecurityContext: {}
replicas: 3
requests:
Expand All @@ -33,7 +32,7 @@ spec:
- effect: NoSchedule
key: dedicated
operator: Equal
value: db-pd
value: DEFAULT_CLUSTER_NAME-pd
pvReclaimPolicy: Retain
schedulerName: tidb-scheduler
tidb:
Expand All @@ -48,7 +47,7 @@ spec:
enableTLSClient: false
maxFailoverCount: 3
nodeSelector:
dedicated: db-tidb
dedicated: DEFAULT_CLUSTER_NAME-tidb
podSecurityContext:
sysctls:
- name: net.ipv4.tcp_keepalive_time
Expand Down Expand Up @@ -81,7 +80,7 @@ spec:
- effect: NoSchedule
key: dedicated
operator: Equal
value: db-tidb
value: DEFAULT_CLUSTER_NAME-tidb
tikv:
affinity: {}
baseImage: pingcap/tikv
Expand All @@ -103,7 +102,7 @@ spec:
- effect: NoSchedule
key: dedicated
operator: Equal
value: db-tikv
value: DEFAULT_CLUSTER_NAME-tikv
timezone: UTC
version: v3.0.12

0 comments on commit 1e0fd75

Please sign in to comment.