diff --git a/argo-k8s/namespace-install-dev.yaml b/dev-env/argo-k8s/namespace-install-dev.yaml similarity index 100% rename from argo-k8s/namespace-install-dev.yaml rename to dev-env/argo-k8s/namespace-install-dev.yaml diff --git a/argo-k8s/namespace-install-release.yaml b/dev-env/argo-k8s/namespace-install-release.yaml similarity index 100% rename from argo-k8s/namespace-install-release.yaml rename to dev-env/argo-k8s/namespace-install-release.yaml diff --git a/jenkins-k8s/deployment-comon.yaml b/dev-env/jenkins-k8s/deployment-comon.yaml similarity index 100% rename from jenkins-k8s/deployment-comon.yaml rename to dev-env/jenkins-k8s/deployment-comon.yaml diff --git a/kubesphere-k8s/bfs-k8scluster.yaml b/dev-env/kubesphere-k8s/bfs-k8scluster.yaml similarity index 100% rename from kubesphere-k8s/bfs-k8scluster.yaml rename to dev-env/kubesphere-k8s/bfs-k8scluster.yaml diff --git a/kubesphere-k8s/staff-k8scluster.yaml b/dev-env/kubesphere-k8s/staff-k8scluster.yaml similarity index 100% rename from kubesphere-k8s/staff-k8scluster.yaml rename to dev-env/kubesphere-k8s/staff-k8scluster.yaml diff --git a/mysql-k8s/mysql-local-dev.yaml b/dev-env/mysql-k8s/mysql-local-dev.yaml similarity index 100% rename from mysql-k8s/mysql-local-dev.yaml rename to dev-env/mysql-k8s/mysql-local-dev.yaml diff --git a/mysql-k8s/mysql-local-release.yaml b/dev-env/mysql-k8s/mysql-local-release.yaml similarity index 100% rename from mysql-k8s/mysql-local-release.yaml rename to dev-env/mysql-k8s/mysql-local-release.yaml diff --git a/nacos-k8s/mysql-local.yaml b/dev-env/nacos-k8s/mysql-local.yaml similarity index 100% rename from nacos-k8s/mysql-local.yaml rename to dev-env/nacos-k8s/mysql-local.yaml diff --git a/nacos-k8s/nacos-no-pvc-ingress.yaml b/dev-env/nacos-k8s/nacos-no-pvc-ingress.yaml similarity index 100% rename from nacos-k8s/nacos-no-pvc-ingress.yaml rename to dev-env/nacos-k8s/nacos-no-pvc-ingress.yaml diff --git a/elasticsearch/elasticsearch.yml b/trainer-env/elastic/elasticsearch.yml similarity index 100% rename from elasticsearch/elasticsearch.yml rename to trainer-env/elastic/elasticsearch.yml diff --git a/elasticsearch/kibana.yaml b/trainer-env/elastic/kibana.yaml similarity index 100% rename from elasticsearch/kibana.yaml rename to trainer-env/elastic/kibana.yaml diff --git a/jenkins-k8s/deployment-basic.yaml b/trainer-env/jenkins-k8s/deployment-basic.yaml similarity index 100% rename from jenkins-k8s/deployment-basic.yaml rename to trainer-env/jenkins-k8s/deployment-basic.yaml diff --git a/mongodb/mongodb.yaml b/trainer-env/mongodb/mongodb.yaml similarity index 100% rename from mongodb/mongodb.yaml rename to trainer-env/mongodb/mongodb.yaml diff --git a/trainer-env/mysql-k8s/mysql-local-staff-axon.yaml b/trainer-env/mysql-k8s/mysql-local-staff-axon.yaml new file mode 100644 index 0000000..4150f50 --- /dev/null +++ b/trainer-env/mysql-k8s/mysql-local-staff-axon.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +kind: ReplicationController +metadata: + name: axon-mysql + namespace: basic + labels: + name: axon-mysql +spec: + replicas: 1 + selector: + name: axon-mysql + template: + metadata: + labels: + name: axon-mysql + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: + - bfs-k8snode-10-2-1-6.hetzner.base.beaconfireinc.com + containers: + - name: axon-mysql + image: mysql:8.0.33 + ports: + - containerPort: 3306 + volumeMounts: + - name: mysql-data-staff-axon + mountPath: /var/lib/mysql + env: + - name: MYSQL_ROOT_PASSWORD + value: "Beaconfire@2099" + - name: MYSQL_DATABASE + value: "event_store" + volumes: + - name: mysql-data-staff-axon + hostPath: + path: /data/staff-axon/mysql +--- +apiVersion: v1 +kind: Service +metadata: + name: axon-mysql + namespace: basic + labels: + name: axon-mysql +spec: + ports: + - protocol: TCP + port: 3306 + targetPort: 3306 + nodePort: 30016 + selector: + name: axon-mysql + type: NodePort \ No newline at end of file diff --git a/trainer-env/mysql-k8s/mysql-local-staff-drill.yaml b/trainer-env/mysql-k8s/mysql-local-staff-drill.yaml new file mode 100644 index 0000000..b3051a0 --- /dev/null +++ b/trainer-env/mysql-k8s/mysql-local-staff-drill.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +kind: ReplicationController +metadata: + name: drill-mysql + namespace: basic + labels: + name: drill-mysql +spec: + replicas: 1 + selector: + name: drill-mysql + template: + metadata: + labels: + name: drill-mysql + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: "kubernetes.io/hostname" + operator: In + values: + - bfs-k8snode-10-2-1-8.hetzner.base.beaconfireinc.com + containers: + - name: drill-mysql + image: mysql:8.0.33 + ports: + - containerPort: 3306 + volumeMounts: + - name: mysql-data-staff-axon + mountPath: /var/lib/mysql + env: + - name: MYSQL_ROOT_PASSWORD + value: "Beaconfire@2099" + - name: MYSQL_DATABASE + value: "drill" + volumes: + - name: mysql-data-staff-axon + hostPath: + path: /data/staff-axon/mysql +--- +apiVersion: v1 +kind: Service +metadata: + name: drill-mysql + namespace: basic + labels: + name: drill-mysql +spec: + ports: + - protocol: TCP + port: 3306 + targetPort: 3306 + nodePort: 30017 + selector: + name: drill-mysql + type: NodePort \ No newline at end of file