diff --git a/deployment/install.yml b/deployment/install.yml index dcba9903a..51270d528 100644 --- a/deployment/install.yml +++ b/deployment/install.yml @@ -2705,7 +2705,7 @@ data: COLLATE utf8mb4_bin NOT NULL,\n `content` longtext COLLATE utf8mb4_bin NOT NULL,\n \ `create_time` bigint(20) NOT NULL,\n `update_time` bigint(20) NOT NULL,\n PRIMARY KEY (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;\n\nINSERT - INTO `system_config` (`name`, `content`, `create_time`, `update_time`) VALUES\n('etcd',\t'[{\\\"prefix\\\":\\\"/prometheus/job/\\\",\\\"info\\\":\\\"监控查询\\\"},{\\\"prefix\\\":\\\"grpc:\\\",\\\"info\\\":\\\"grpc\\\"},{\\\"prefix\\\":\\\"http:\\\",\\\"info\\\":\\\"http\\\"}]',\t1673061016,\t1675836035),\n('grafana',\t'{\\\"host\\\":\\\"http://grafana:3000\\\",\\\"scheme\\\":\\\"http\\\",\\\"header_name\\\":\\\"X-WEBAUTH-USER\\\"}',\t1673061016,\t1675836436),\n('version',\t'[{\\\"name\\\":\\\"jupiter1.0\\\",\\\"version\\\":\\\"v1.0\\\",\\\"versionKey\\\":\\\"jupiter1.0\\\",\\\"host\\\":\\\"http://127.0.0.1:3000\\\",\\\"header_name\\\":\\\"X-WEBAUTH-USER\\\",\\\"dashboards\\\":[{\\\"name\\\":\\\"API监控面板地址\\\",\\\"value\\\":\\\"/grafana/d/api\\\"},{\\\"name\\\":\\\"实例监控面板\\\",\\\"value\\\":\\\"/grafana/d/instance\\\"},{\\\"name\\\":\\\"概览监控面板\\\",\\\"value\\\":\\\"/grafana/d/overview\\\"}]}]',\t1673061016,\t0);\n\nDROP + INTO `system_config` (`name`, `content`, `create_time`, `update_time`) VALUES\n('etcd',\t'[{\\\"prefix\\\":\\\"/prometheus/job/\\\",\\\"info\\\":\\\"监控查询\\\"},{\\\"prefix\\\":\\\"grpc:\\\",\\\"info\\\":\\\"grpc\\\"},{\\\"prefix\\\":\\\"http:\\\",\\\"info\\\":\\\"http\\\"}]',\t1673061016,\t1675836035),\n('grafana',\t'{\\\"host\\\":\\\"grafana:3000\\\",\\\"scheme\\\":\\\"http\\\",\\\"header_name\\\":\\\"X-WEBAUTH-USER\\\"}',\t1673061016,\t1676546139),\n('version',\t'[{\\\"name\\\":\\\"jupiter1.0\\\",\\\"version\\\":\\\"v1.0\\\",\\\"versionKey\\\":\\\"jupiter1.0\\\",\\\"dashboards\\\":[{\\\"name\\\":\\\"API监控面板地址\\\",\\\"value\\\":\\\"/grafana/d/api/api?orgId=1\\\"},{\\\"name\\\":\\\"实例监控面板\\\",\\\"value\\\":\\\"/grafana/d/instance/instance?orgId=1\\\"},{\\\"name\\\":\\\"概览监控面板\\\",\\\"value\\\":\\\"/grafana/d/overview/overview?orgId=1\\\"}]}]',\t1673061016,\t1676546237);\n\nDROP TABLE IF EXISTS `test_pipeline`;\nCREATE TABLE `test_pipeline` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n `created_at` datetime(3) DEFAULT NULL,\n \ `updated_at` datetime(3) DEFAULT NULL,\n `deleted_at` datetime(3) DEFAULT NULL,\n @@ -4481,12 +4481,12 @@ spec: resources: {} volumeMounts: - mountPath: /docker-entrypoint-initdb.d - name: test-config + name: db-cm0 restartPolicy: Always volumes: - configMap: - name: test-config - name: test-config + name: db-cm0 + name: db-cm0 status: {} --- apiVersion: apps/v1 diff --git a/deployment/juno/data/config/initdb/juno.sql b/deployment/juno/data/config/initdb/juno.sql index cc6976a82..7ea8fc954 100644 --- a/deployment/juno/data/config/initdb/juno.sql +++ b/deployment/juno/data/config/initdb/juno.sql @@ -879,8 +879,8 @@ CREATE TABLE `system_config` ( INSERT INTO `system_config` (`name`, `content`, `create_time`, `update_time`) VALUES ('etcd', '[{\"prefix\":\"/prometheus/job/\",\"info\":\"监控查询\"},{\"prefix\":\"grpc:\",\"info\":\"grpc\"},{\"prefix\":\"http:\",\"info\":\"http\"}]', 1673061016, 1675836035), -('grafana', '{\"host\":\"http://grafana:3000\",\"scheme\":\"http\",\"header_name\":\"X-WEBAUTH-USER\"}', 1673061016, 1675836436), -('version', '[{\"name\":\"jupiter1.0\",\"version\":\"v1.0\",\"versionKey\":\"jupiter1.0\",\"host\":\"http://127.0.0.1:3000\",\"header_name\":\"X-WEBAUTH-USER\",\"dashboards\":[{\"name\":\"API监控面板地址\",\"value\":\"/grafana/d/api\"},{\"name\":\"实例监控面板\",\"value\":\"/grafana/d/instance\"},{\"name\":\"概览监控面板\",\"value\":\"/grafana/d/overview\"}]}]', 1673061016, 0); +('grafana', '{\"host\":\"grafana:3000\",\"scheme\":\"http\",\"header_name\":\"X-WEBAUTH-USER\"}', 1673061016, 1676546139), +('version', '[{\"name\":\"jupiter1.0\",\"version\":\"v1.0\",\"versionKey\":\"jupiter1.0\",\"dashboards\":[{\"name\":\"API监控面板地址\",\"value\":\"/grafana/d/api/api?orgId=1\"},{\"name\":\"实例监控面板\",\"value\":\"/grafana/d/instance/instance?orgId=1\"},{\"name\":\"概览监控面板\",\"value\":\"/grafana/d/overview/overview?orgId=1\"}]}]', 1673061016, 1676546237); DROP TABLE IF EXISTS `test_pipeline`; CREATE TABLE `test_pipeline` ( diff --git a/deployment/juno/install.yml b/deployment/juno/install.yml index 95641ea8e..cf5b0259c 100644 --- a/deployment/juno/install.yml +++ b/deployment/juno/install.yml @@ -492,12 +492,12 @@ spec: resources: {} volumeMounts: - mountPath: /docker-entrypoint-initdb.d - name: test-config + name: db-cm0 restartPolicy: Always volumes: - configMap: - name: test-config - name: test-config + name: db-cm0 + name: db-cm0 status: {} --- apiVersion: apps/v1