From 4c7a676f14f4f3da0f7980c1838473aef83e18db Mon Sep 17 00:00:00 2001 From: ycz Date: Thu, 13 Mar 2025 11:02:38 +0800 Subject: [PATCH] update tob rename tcs to training --- tob-upgrade/elastic/elastic.yaml | 38 +++++++++++++++---------------- tob-upgrade/elastic/filebeat.yaml | 2 +- tob-upgrade/elastic/kibana.yaml | 2 +- tob-upgrade/elastic/storage.yaml | 2 +- tob-upgrade/kafka/akhq.yaml | 4 ++-- tob-upgrade/kafka/kafka.yaml | 8 +++---- tob-upgrade/kafka/storage.yaml | 2 +- tob-upgrade/mongo/mongo.yaml | 2 +- tob-upgrade/redis/redis.yaml | 6 ++--- 9 files changed, 33 insertions(+), 33 deletions(-) diff --git a/tob-upgrade/elastic/elastic.yaml b/tob-upgrade/elastic/elastic.yaml index 088c4df..5e8a3cd 100644 --- a/tob-upgrade/elastic/elastic.yaml +++ b/tob-upgrade/elastic/elastic.yaml @@ -2,19 +2,19 @@ apiVersion: v1 kind: PersistentVolume metadata: - name: elastic-tcs-0 + name: elastic-training-0 spec: - storageClassName: elastic-tcs + storageClassName: elastic-training capacity: storage: 30Gi accessModes: - ReadWriteOnce local: - path: /data/elastic-tcs/es_data + path: /data/elastic-training/es_data claimRef: kind: PersistentVolumeClaim - namespace: tcs - name: elastic-tcs-elastic-0 + namespace: training + name: elastic-training-elastic-0 nodeAffinity: required: nodeSelectorTerms: @@ -28,19 +28,19 @@ spec: apiVersion: v1 kind: PersistentVolume metadata: - name: elastic-tcs-1 + name: elastic-training-1 spec: - storageClassName: elastic-tcs + storageClassName: elastic-training capacity: storage: 30Gi accessModes: - ReadWriteOnce local: - path: /data/elastic-tcs/es_data + path: /data/elastic-training/es_data claimRef: kind: PersistentVolumeClaim namespace: - name: elastic-tcs-elastic-1 + name: elastic-training-elastic-1 nodeAffinity: required: nodeSelectorTerms: @@ -54,19 +54,19 @@ spec: apiVersion: v1 kind: PersistentVolume metadata: - name: elastic-tcs-2 + name: elastic-training-2 spec: - storageClassName: elastic-tcs + storageClassName: elastic-training capacity: storage: 30Gi accessModes: - ReadWriteOnce local: - path: /data/elastic-tcs/es_data + path: /data/elastic-training/es_data claimRef: kind: PersistentVolumeClaim - namespace: tcs - name: elastic-tcs-elastic-2 + namespace: training + name: elastic-training-elastic-2 nodeAffinity: required: nodeSelectorTerms: @@ -104,7 +104,7 @@ spec: securityContext: privileged: true volumeMounts: - - name: elastic-tcs + - name: elastic-training mountPath: /usr/share/elasticsearch/data containers: - name: elasticsearch @@ -117,7 +117,7 @@ spec: name: transport env: - name: cluster.name - value: bfs-elastic-tcs-1 + value: bfs-elastic-training-1 - name: network.host value: 0.0.0.0 - name: node.name @@ -144,14 +144,14 @@ spec: cpu: 100m memory: 512Mi volumeMounts: - - name: elastic-tcs + - name: elastic-training mountPath: /usr/share/elasticsearch/data volumeClaimTemplates: - metadata: - name: elastic-tcs + name: elastic-training spec: accessModes: ['ReadWriteOnce'] - storageClassName: "elastic-tcs" + storageClassName: "elastic-training" resources: requests: storage: 30Gi diff --git a/tob-upgrade/elastic/filebeat.yaml b/tob-upgrade/elastic/filebeat.yaml index a1a8ed6..03df7c0 100644 --- a/tob-upgrade/elastic/filebeat.yaml +++ b/tob-upgrade/elastic/filebeat.yaml @@ -39,7 +39,7 @@ data: output.kafka: hosts: ["10.2.0.12:30002","10.2.0.12:30003","10.2.0.12:30004"] - topic: 'beaconfire-logback-tcs' + topic: 'beaconfire-logback-training' partition.round_robin: reachable_only: false diff --git a/tob-upgrade/elastic/kibana.yaml b/tob-upgrade/elastic/kibana.yaml index acbfcf0..0fe06f1 100644 --- a/tob-upgrade/elastic/kibana.yaml +++ b/tob-upgrade/elastic/kibana.yaml @@ -6,7 +6,7 @@ data: kibana.yml: |- server.name: kibana server.host: 0.0.0.0 - server.publicBaseUrl: http://kibana-tcs.beaconfireinc.com + server.publicBaseUrl: http://kibana-training.beaconfireinc.com elasticsearch.hosts: [ "http://elastic:9200" ] node.options: |- --max-old-space-size=4096 diff --git a/tob-upgrade/elastic/storage.yaml b/tob-upgrade/elastic/storage.yaml index 51ab497..170b164 100644 --- a/tob-upgrade/elastic/storage.yaml +++ b/tob-upgrade/elastic/storage.yaml @@ -2,7 +2,7 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: - name: elastic-tcs + name: elastic-training provisioner: openebs.io/local allowVolumeExpansion: true volumeBindingMode: WaitForFirstConsumer diff --git a/tob-upgrade/kafka/akhq.yaml b/tob-upgrade/kafka/akhq.yaml index a29c88a..0cb797d 100644 --- a/tob-upgrade/kafka/akhq.yaml +++ b/tob-upgrade/kafka/akhq.yaml @@ -26,9 +26,9 @@ data: connections: kafka-cluster: properties: - bootstrap.servers: "kafka.tcs.svc.cluster.local:9092" + bootstrap.servers: "kafka.training.svc.cluster.local:9092" schema-registry: - url: "http://schemaregistry.tcs.svc.cluster.local:8081" + url: "http://schemaregistry.training.svc.cluster.local:8081" type: "confluent" --- diff --git a/tob-upgrade/kafka/kafka.yaml b/tob-upgrade/kafka/kafka.yaml index 2f72a5e..bbc57b5 100644 --- a/tob-upgrade/kafka/kafka.yaml +++ b/tob-upgrade/kafka/kafka.yaml @@ -25,7 +25,7 @@ spec: dataVolumeCapacity: 10Gi logVolumeCapacity: 10Gi storageClass: - name: tcs-kafka + name: training-kafka --- apiVersion: platform.confluent.io/v1beta1 kind: Kafka @@ -62,7 +62,7 @@ spec: init: confluentinc/confluent-init-container:2.6.0 dataVolumeCapacity: 20Gi storageClass: - name: tcs-kafka + name: training-kafka metricReporter: enabled: true listeners: @@ -70,7 +70,7 @@ spec: externalAccess: type: nodePort nodePort: - host: kafka-tcs.beaconfireinc.com + host: kafka-training.beaconfireinc.com nodePortOffset: 30001 # dependencies: # 多个kakfa集群复用zk @@ -103,5 +103,5 @@ spec: externalAccess: type: nodePort nodePort: - host: kafka-tcs.beaconfireinc.com + host: kafka-training.beaconfireinc.com nodePortOffset: 30005 diff --git a/tob-upgrade/kafka/storage.yaml b/tob-upgrade/kafka/storage.yaml index e9ffc4e..ae6a8e4 100644 --- a/tob-upgrade/kafka/storage.yaml +++ b/tob-upgrade/kafka/storage.yaml @@ -2,7 +2,7 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: - name: tcs-kafka + name: training-kafka provisioner: openebs.io/local reclaimPolicy: Retain allowVolumeExpansion: true diff --git a/tob-upgrade/mongo/mongo.yaml b/tob-upgrade/mongo/mongo.yaml index 8d14bf8..35b283c 100644 --- a/tob-upgrade/mongo/mongo.yaml +++ b/tob-upgrade/mongo/mongo.yaml @@ -43,7 +43,7 @@ spec: volumes: - name: mongo-data hostPath: - path: /data/tcs/mongo + path: /data/training/mongo affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: diff --git a/tob-upgrade/redis/redis.yaml b/tob-upgrade/redis/redis.yaml index ba36d15..1e1590b 100644 --- a/tob-upgrade/redis/redis.yaml +++ b/tob-upgrade/redis/redis.yaml @@ -33,7 +33,7 @@ spec: - name: "REDIS_ARGS" value: "--requirepass beaconfire@123" volumeMounts: - - name: tcs-redis + - name: training-redis mountPath: /data resources: limits: @@ -59,9 +59,9 @@ spec: successThreshold: 1 failureThreshold: 3 volumes: - - name: tcs-redis + - name: training-redis hostPath: - path: /data/tcs/redis + path: /data/training/redis affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: