리소스 변경
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
- hosts: cluster
|
- hosts: cluster
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
environment:
|
||||||
|
KUBECONFIG: /root/.kube/ansible_config
|
||||||
vars:
|
vars:
|
||||||
cmoa_namespace: imxc
|
cmoa_namespace: imxc
|
||||||
pg_version:
|
pg_version:
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
[master]
|
[master]
|
||||||
10.10.43.210
|
10.10.43.200
|
||||||
|
|
||||||
[worker1]
|
[worker1]
|
||||||
10.10.43.211
|
10.10.43.201
|
||||||
|
|
||||||
[worker2]
|
[worker2]
|
||||||
10.10.43.212
|
10.10.43.202
|
||||||
|
|
||||||
[cluster:children]
|
[cluster:children]
|
||||||
master
|
master
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ alertmanager:
|
|||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|
||||||
distributor:
|
distributor:
|
||||||
replicas: 1
|
replicas: 2
|
||||||
|
|
||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
@@ -458,7 +458,7 @@ distributor:
|
|||||||
lifecycle: {}
|
lifecycle: {}
|
||||||
|
|
||||||
ingester:
|
ingester:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
|
|
||||||
statefulSet:
|
statefulSet:
|
||||||
# -- If true, use a statefulset instead of a deployment for pod management.
|
# -- If true, use a statefulset instead of a deployment for pod management.
|
||||||
@@ -737,7 +737,7 @@ ruler:
|
|||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|
||||||
querier:
|
querier:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
|
|
||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
@@ -839,7 +839,7 @@ querier:
|
|||||||
lifecycle: {}
|
lifecycle: {}
|
||||||
|
|
||||||
query_frontend:
|
query_frontend:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
|
|
||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
|||||||
@@ -1792,12 +1792,14 @@ create table public.audit_log
|
|||||||
target jsonb
|
target jsonb
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE "intermax" (
|
create table public.intermax
|
||||||
"cluster_id" VARCHAR(128) NOT NULL,
|
(
|
||||||
"namespace" VARCHAR(128) NOT NULL,
|
cluster_id varchar(128) not null,
|
||||||
"url" VARCHAR(256) NULL DEFAULT NULL,
|
namespace varchar(128) not null,
|
||||||
"service_name" VARCHAR(128) NULL DEFAULT NULL,
|
url varchar(256),
|
||||||
PRIMARY KEY ("cluster_id", "namespace")
|
service_name varchar(128),
|
||||||
|
constraint intermax_pk
|
||||||
|
primary key (cluster_id, namespace)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Configuration Table 생성
|
-- Configuration Table 생성
|
||||||
@@ -1900,4 +1902,4 @@ CREATE TABLE "cmoa_serviceaccount_base" (
|
|||||||
"metadata_namespace" TEXT NULL DEFAULT NULL,
|
"metadata_namespace" TEXT NULL DEFAULT NULL,
|
||||||
"secrets" TEXT NULL DEFAULT NULL,
|
"secrets" TEXT NULL DEFAULT NULL,
|
||||||
PRIMARY KEY ("kube_flatting_time", "cluster_id", "kind", "metadata_uid", "row_index")
|
PRIMARY KEY ("kube_flatting_time", "cluster_id", "kind", "metadata_uid", "row_index")
|
||||||
);
|
);
|
||||||
@@ -2623,4 +2623,4 @@ INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,ent
|
|||||||
VALUES ('count_pod_oomkilled','OOMKilled of Pods By Workload','OOMKilled of Pods By Workload','count by (xm_clst_id, xm_pod_id, xm_cont_name, xm_namespace) (imxc_pod_container_status_terminated_reason_oom{{filter}})','State','Workload','xm_clst_id, xm_namespace, xm_pod_id',TRUE,'CLST:{{$labels.xm_clst_id}} POD:{{$labels.xm_pod_id}} NS:{{$labels.xm_namespace}}.');
|
VALUES ('count_pod_oomkilled','OOMKilled of Pods By Workload','OOMKilled of Pods By Workload','count by (xm_clst_id, xm_pod_id, xm_cont_name, xm_namespace) (imxc_pod_container_status_terminated_reason_oom{{filter}})','State','Workload','xm_clst_id, xm_namespace, xm_pod_id',TRUE,'CLST:{{$labels.xm_clst_id}} POD:{{$labels.xm_pod_id}} NS:{{$labels.xm_namespace}}.');
|
||||||
-- Last Reason OOMKilled
|
-- Last Reason OOMKilled
|
||||||
INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,entity_type,groupby_keys,in_use,message)
|
INSERT INTO public.metric_meta2 (id,meta_name,description,expr,resource_type,entity_type,groupby_keys,in_use,message)
|
||||||
VALUES ('count_pod_last_oomkilled','Last OOMKilled of Pods By Workload','Last OOMKilled of Pods By Workload','count by (xm_clst_id, xm_pod_id, xm_cont_name, xm_namespace) (imxc_pod_container_status_last_terminated_reason_oom{{filter}})','State','Workload','xm_clst_id, xm_namespace, xm_pod_id', TRUE,'CLST:{{$labels.xm_clst_id}} POD:{{$labels.xm_pod_id}} NS:{{$labels.xm_namespace}}.');
|
VALUES ('count_pod_last_oomkilled','Last OOMKilled of Pods By Workload','Last OOMKilled of Pods By Workload','count by (xm_clst_id, xm_pod_id, xm_cont_name, xm_namespace) (imxc_pod_container_status_last_terminated_reason_oom{{filter}})','State','Workload','xm_clst_id, xm_namespace, xm_pod_id', TRUE,'CLST:{{$labels.xm_clst_id}} POD:{{$labels.xm_pod_id}} NS:{{$labels.xm_namespace}}.');
|
||||||
Reference in New Issue
Block a user