diff --git a/dev-upgrade/kafka/kafka-release.yaml b/dev-upgrade/kafka/kafka-release.yaml deleted file mode 100644 index be6ecde..0000000 --- a/dev-upgrade/kafka/kafka-release.yaml +++ /dev/null @@ -1,95 +0,0 @@ ---- -apiVersion: platform.confluent.io/v1beta1 -kind: Zookeeper -metadata: - name: zookeeper -spec: - replicas: 3 - oneReplicaPerNode: true - configOverrides: - jvm: - - "-Xmx128m" - podTemplate: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - es-release - image: - application: confluentinc/cp-zookeeper:7.4.0 - init: confluentinc/confluent-init-container:2.6.0 - dataVolumeCapacity: 10Gi - logVolumeCapacity: 10Gi - storageClass: - name: local-kafka ---- -apiVersion: platform.confluent.io/v1beta1 -kind: Kafka -metadata: - name: kafka -spec: - replicas: 3 - oneReplicaPerNode: true - configOverrides: - server: - - auto.create.topics.enable=true - - default.replication.factor=3 - jvm: - - "-Xmx512m" - podTemplate: - resources: - requests: - memory: "256Mi" - cpu: "100m" - limits: - memory: "4G" - cpu: "1" - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - es-release - image: - application: confluentinc/cp-server:7.4.0 - init: confluentinc/confluent-init-container:2.6.0 - dataVolumeCapacity: 20Gi - storageClass: - name: local-kafka - metricReporter: - enabled: true - # dependencies: - # 多个kakfa集群复用zk - # zookeeper: - # endpoint: zookeeper.common.svc.cluster.local:2181 ---- -apiVersion: platform.confluent.io/v1beta1 -kind: SchemaRegistry -metadata: - name: schemaregistry -spec: - replicas: 3 - oneReplicaPerNode: true - configOverrides: - jvm: - - "-Xmx128m" - podTemplate: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - es-release - image: - application: confluentinc/cp-schema-registry:7.4.0 - init: confluentinc/confluent-init-container:2.6.0 diff --git a/dev-upgrade/mongo/mongo-release.yaml b/dev-upgrade/mongo/mongo-release.yaml deleted file mode 100644 index 0f2fc0f..0000000 --- a/dev-upgrade/mongo/mongo-release.yaml +++ /dev/null @@ -1,84 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolume -metadata: - name: mongo-release-0 - labels: - type: local -spec: - storageClassName: local-mongo - capacity: - storage: 10Gi - accessModes: - - ReadWriteOnce - local: - path: /data/release/mongo - nodeAffinity: - required: - nodeSelectorTerms: - - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - trainer - - key: kubernetes.io/hostname - operator: In - values: - - bfs-k8snode-10-2-0-13.hetzner.base.beaconfireinc.com - ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: mongo -spec: - replicas: 1 - serviceName: mongo - selector: - matchLabels: - app: mongo - template: - metadata: - labels: - app: mongo - spec: - containers: - - name: mongo - image: mongo:6.0.6 - imagePullPolicy: IfNotPresent - env: - - name: MONGO_INITDB_ROOT_USERNAME - value: root - - name: MONGO_INITDB_ROOT_PASSWORD - value: 'root@123' - ports: - - containerPort: 27017 - volumeMounts: - - name: mongo-data - mountPath: /data/db - volumeClaimTemplates: - - metadata: - name: mongo-data - spec: - accessModes: ['ReadWriteOnce'] - storageClassName: local-mongo - resources: - requests: - storage: 5Gi - ---- -apiVersion: v1 -kind: Service -metadata: - name: mongo -spec: - selector: - app: mongo - ports: - - name: mongo - protocol: TCP - port: 27017 - targetPort: 27017 - nodePort: 30028 - type: NodePort - diff --git a/dev-upgrade/mysql/mysql-release.yaml b/dev-upgrade/mysql/mysql-release.yaml deleted file mode 100644 index dc11992..0000000 --- a/dev-upgrade/mysql/mysql-release.yaml +++ /dev/null @@ -1,55 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: mysql - namespace: release - labels: - name: mysql -spec: - replicas: 1 - selector: - name: mysql - template: - metadata: - labels: - name: mysql - spec: - containers: - - name: mysql - image: mysql:8.0.33 - args: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--max_connections=2000", "--binlog_expire_logs_seconds=432000"] - ports: - - containerPort: 3306 - volumeMounts: - - name: mysql-data-release - mountPath: /var/lib/mysql - env: - - name: MYSQL_ROOT_PASSWORD - value: "----------" - - name: MYSQL_DATABASE - value: "devops" - - name: MYSQL_USER - value: "devops" - - name: MYSQL_PASSWORD - value: "devops" - volumes: - - name: mysql-data-release - hostPath: - path: /data/release/mysql ---- -apiVersion: v1 -kind: Service -metadata: - name: mysql - namespace: release - labels: - name: mysql -spec: - ports: - - protocol: TCP - port: 3306 - targetPort: 3306 - nodePort: 30026 - selector: - name: mysql - type: NodePort diff --git a/dev-upgrade/redis/redis-release.yaml b/dev-upgrade/redis/redis-release.yaml deleted file mode 100644 index bf7171a..0000000 --- a/dev-upgrade/redis/redis-release.yaml +++ /dev/null @@ -1,96 +0,0 @@ ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: redis-config - labels: - app: redis -data: - redis.conf: |- - dir /srv - port 6379 - bind 0.0.0.0 - appendonly yes - daemonize no - requirepass beaconfire@123 - pidfile /srv/redis-6379.pid - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: redis - labels: - app: redis -spec: - replicas: 1 - selector: - matchLabels: - app: redis - template: - metadata: - labels: - app: redis - spec: - initContainers: - - name: init - image: busybox - imagePullPolicy: IfNotPresent - command: ["/bin/sh", "-c", "sysctl -w net.core.somaxconn=1024"] - securityContext: - privileged: true - containers: - - name: redis - image: redis:6.2.12 - command: - - "sh" - - "-c" - - "redis-server /usr/local/redis/redis.conf" - ports: - - containerPort: 6379 - resources: - limits: - cpu: 1 - memory: 1Gi - requests: - cpu: 50m - memory: 128Mi - livenessProbe: - tcpSocket: - port: 6379 - initialDelaySeconds: 300 - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - tcpSocket: - port: 6379 - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - volumeMounts: - - name: config - mountPath: /usr/local/redis/redis.conf - subPath: redis.conf - volumes: - - name: config - configMap: - name: redis-config - ---- -apiVersion: v1 -kind: Service -metadata: - name: redis -spec: - ports: - - port: 6379 - protocol: TCP - targetPort: 6379 - nodePort: 30025 - selector: - app: redis - type: NodePort diff --git a/dev-upgrade/redis/redis-stack-release.yaml b/dev-upgrade/redis/redis-stack-release.yaml deleted file mode 100644 index d9cd315..0000000 --- a/dev-upgrade/redis/redis-stack-release.yaml +++ /dev/null @@ -1,71 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: redis-stack - labels: - app: redis-stack -spec: - replicas: 1 - selector: - matchLabels: - app: redis-stack - template: - metadata: - labels: - app: redis-stack - spec: - initContainers: - - name: init - image: busybox - imagePullPolicy: IfNotPresent - command: ["/bin/sh", "-c", "sysctl -w net.core.somaxconn=1024"] - securityContext: - privileged: true - containers: - - name: redis-stack - image: redis/redis-stack-server:7.2.0-v0 - ports: - - protocol: TCP - containerPort: 8080 - env: - - name: "REDIS_ARGS" - value: "--requirepass beaconfire@123" - resources: - limits: - cpu: 1 - memory: 1Gi - requests: - cpu: 50m - memory: 128Mi - livenessProbe: - tcpSocket: - port: 6379 - initialDelaySeconds: 300 - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - tcpSocket: - port: 6379 - initialDelaySeconds: 5 - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - ---- -apiVersion: v1 -kind: Service -metadata: - name: redis-stack -spec: - ports: - - port: 6379 - protocol: TCP - targetPort: 6379 - nodePort: 30023 - selector: - app: redis-stack - type: NodePort