update tob rename tcs to training
parent
2924d1f9ad
commit
4c7a676f14
|
@ -2,19 +2,19 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: elastic-tcs-0
|
name: elastic-training-0
|
||||||
spec:
|
spec:
|
||||||
storageClassName: elastic-tcs
|
storageClassName: elastic-training
|
||||||
capacity:
|
capacity:
|
||||||
storage: 30Gi
|
storage: 30Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
local:
|
local:
|
||||||
path: /data/elastic-tcs/es_data
|
path: /data/elastic-training/es_data
|
||||||
claimRef:
|
claimRef:
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
namespace: tcs
|
namespace: training
|
||||||
name: elastic-tcs-elastic-0
|
name: elastic-training-elastic-0
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
required:
|
required:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -28,19 +28,19 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: elastic-tcs-1
|
name: elastic-training-1
|
||||||
spec:
|
spec:
|
||||||
storageClassName: elastic-tcs
|
storageClassName: elastic-training
|
||||||
capacity:
|
capacity:
|
||||||
storage: 30Gi
|
storage: 30Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
local:
|
local:
|
||||||
path: /data/elastic-tcs/es_data
|
path: /data/elastic-training/es_data
|
||||||
claimRef:
|
claimRef:
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
namespace:
|
namespace:
|
||||||
name: elastic-tcs-elastic-1
|
name: elastic-training-elastic-1
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
required:
|
required:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -54,19 +54,19 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: elastic-tcs-2
|
name: elastic-training-2
|
||||||
spec:
|
spec:
|
||||||
storageClassName: elastic-tcs
|
storageClassName: elastic-training
|
||||||
capacity:
|
capacity:
|
||||||
storage: 30Gi
|
storage: 30Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
local:
|
local:
|
||||||
path: /data/elastic-tcs/es_data
|
path: /data/elastic-training/es_data
|
||||||
claimRef:
|
claimRef:
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
namespace: tcs
|
namespace: training
|
||||||
name: elastic-tcs-elastic-2
|
name: elastic-training-elastic-2
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
required:
|
required:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
|
@ -104,7 +104,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: elastic-tcs
|
- name: elastic-training
|
||||||
mountPath: /usr/share/elasticsearch/data
|
mountPath: /usr/share/elasticsearch/data
|
||||||
containers:
|
containers:
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
|
@ -117,7 +117,7 @@ spec:
|
||||||
name: transport
|
name: transport
|
||||||
env:
|
env:
|
||||||
- name: cluster.name
|
- name: cluster.name
|
||||||
value: bfs-elastic-tcs-1
|
value: bfs-elastic-training-1
|
||||||
- name: network.host
|
- name: network.host
|
||||||
value: 0.0.0.0
|
value: 0.0.0.0
|
||||||
- name: node.name
|
- name: node.name
|
||||||
|
@ -144,14 +144,14 @@ spec:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: elastic-tcs
|
- name: elastic-training
|
||||||
mountPath: /usr/share/elasticsearch/data
|
mountPath: /usr/share/elasticsearch/data
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: elastic-tcs
|
name: elastic-training
|
||||||
spec:
|
spec:
|
||||||
accessModes: ['ReadWriteOnce']
|
accessModes: ['ReadWriteOnce']
|
||||||
storageClassName: "elastic-tcs"
|
storageClassName: "elastic-training"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 30Gi
|
storage: 30Gi
|
||||||
|
|
|
@ -39,7 +39,7 @@ data:
|
||||||
output.kafka:
|
output.kafka:
|
||||||
hosts: ["10.2.0.12:30002","10.2.0.12:30003","10.2.0.12:30004"]
|
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:
|
partition.round_robin:
|
||||||
reachable_only: false
|
reachable_only: false
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ data:
|
||||||
kibana.yml: |-
|
kibana.yml: |-
|
||||||
server.name: kibana
|
server.name: kibana
|
||||||
server.host: 0.0.0.0
|
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" ]
|
elasticsearch.hosts: [ "http://elastic:9200" ]
|
||||||
node.options: |-
|
node.options: |-
|
||||||
--max-old-space-size=4096
|
--max-old-space-size=4096
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
metadata:
|
metadata:
|
||||||
name: elastic-tcs
|
name: elastic-training
|
||||||
provisioner: openebs.io/local
|
provisioner: openebs.io/local
|
||||||
allowVolumeExpansion: true
|
allowVolumeExpansion: true
|
||||||
volumeBindingMode: WaitForFirstConsumer
|
volumeBindingMode: WaitForFirstConsumer
|
||||||
|
|
|
@ -26,9 +26,9 @@ data:
|
||||||
connections:
|
connections:
|
||||||
kafka-cluster:
|
kafka-cluster:
|
||||||
properties:
|
properties:
|
||||||
bootstrap.servers: "kafka.tcs.svc.cluster.local:9092"
|
bootstrap.servers: "kafka.training.svc.cluster.local:9092"
|
||||||
schema-registry:
|
schema-registry:
|
||||||
url: "http://schemaregistry.tcs.svc.cluster.local:8081"
|
url: "http://schemaregistry.training.svc.cluster.local:8081"
|
||||||
type: "confluent"
|
type: "confluent"
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -25,7 +25,7 @@ spec:
|
||||||
dataVolumeCapacity: 10Gi
|
dataVolumeCapacity: 10Gi
|
||||||
logVolumeCapacity: 10Gi
|
logVolumeCapacity: 10Gi
|
||||||
storageClass:
|
storageClass:
|
||||||
name: tcs-kafka
|
name: training-kafka
|
||||||
---
|
---
|
||||||
apiVersion: platform.confluent.io/v1beta1
|
apiVersion: platform.confluent.io/v1beta1
|
||||||
kind: Kafka
|
kind: Kafka
|
||||||
|
@ -62,7 +62,7 @@ spec:
|
||||||
init: confluentinc/confluent-init-container:2.6.0
|
init: confluentinc/confluent-init-container:2.6.0
|
||||||
dataVolumeCapacity: 20Gi
|
dataVolumeCapacity: 20Gi
|
||||||
storageClass:
|
storageClass:
|
||||||
name: tcs-kafka
|
name: training-kafka
|
||||||
metricReporter:
|
metricReporter:
|
||||||
enabled: true
|
enabled: true
|
||||||
listeners:
|
listeners:
|
||||||
|
@ -70,7 +70,7 @@ spec:
|
||||||
externalAccess:
|
externalAccess:
|
||||||
type: nodePort
|
type: nodePort
|
||||||
nodePort:
|
nodePort:
|
||||||
host: kafka-tcs.beaconfireinc.com
|
host: kafka-training.beaconfireinc.com
|
||||||
nodePortOffset: 30001
|
nodePortOffset: 30001
|
||||||
# dependencies:
|
# dependencies:
|
||||||
# 多个kakfa集群复用zk
|
# 多个kakfa集群复用zk
|
||||||
|
@ -103,5 +103,5 @@ spec:
|
||||||
externalAccess:
|
externalAccess:
|
||||||
type: nodePort
|
type: nodePort
|
||||||
nodePort:
|
nodePort:
|
||||||
host: kafka-tcs.beaconfireinc.com
|
host: kafka-training.beaconfireinc.com
|
||||||
nodePortOffset: 30005
|
nodePortOffset: 30005
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: storage.k8s.io/v1
|
apiVersion: storage.k8s.io/v1
|
||||||
kind: StorageClass
|
kind: StorageClass
|
||||||
metadata:
|
metadata:
|
||||||
name: tcs-kafka
|
name: training-kafka
|
||||||
provisioner: openebs.io/local
|
provisioner: openebs.io/local
|
||||||
reclaimPolicy: Retain
|
reclaimPolicy: Retain
|
||||||
allowVolumeExpansion: true
|
allowVolumeExpansion: true
|
||||||
|
|
|
@ -43,7 +43,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: mongo-data
|
- name: mongo-data
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /data/tcs/mongo
|
path: /data/training/mongo
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
|
|
@ -33,7 +33,7 @@ spec:
|
||||||
- name: "REDIS_ARGS"
|
- name: "REDIS_ARGS"
|
||||||
value: "--requirepass beaconfire@123"
|
value: "--requirepass beaconfire@123"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: tcs-redis
|
- name: training-redis
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
@ -59,9 +59,9 @@ spec:
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
volumes:
|
volumes:
|
||||||
- name: tcs-redis
|
- name: training-redis
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /data/tcs/redis
|
path: /data/training/redis
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
|
Loading…
Reference in New Issue