...
1apiVersion: v1
2kind: ServiceAccount
3metadata:
4 name: clusterctl
5---
6apiVersion: v1
7kind: ConfigMap
8metadata:
9 name: clusterctl
10data:
11 BSL_ENDPOINT: ${bsl_endpoint}
12 BSL_ROOT_ORG: ${bsl_root_org}
13 BSP_ORGANIZATION_PREFIX: ${bsl_edge_env_prefix}
14 CLUSTER_CONCURRENCY: "24"
15 DATASYNC_DNS_NAME: ${datasync_dns_name}
16 DATASYNC_DNS_ZONE: ${datasync_dns_zone}
17 DOMAIN: ${domain}
18 EDGE_API: https://${domain}/api/v2
19 EDGE_SEC_MAX_LEASE_PERIOD: ${edge_sec_max_lease_period}
20 EDGE_SEC_MAX_VALIDITY_PERIOD: ${edge_sec_max_validity_period}
21 GCP_REGION: ${gcp_region}
22 GCP_ZONE: ${gcp_zone}
23 GKECLUSTER_CONCURRENCY: "6"
24 HELM_CACHE_LIMIT: "1200"
25 PLUGIN_CONCURRENCY: "24"
26 SQL_CONNECTION_NAME: ${foreman_gcp_project_id}:${gcp_region}:${edge_sql_db_name}-migrated
27 SQL_DB_NAME: ${edge_sql_db_name}
28 SQL_USER: cctl-${cluster_hash}@${gcp_project_id}.iam
29 TOP_LEVEL_CNRM_SA: foreman-cnrm-system@plat-infra-project-id.iam.gserviceaccount.com
30 TOP_LEVEL_PROJECT_ID: ${foreman_gcp_project_id}
31 WAIT_FOR_SET_CONCURRENCY: "5"
32 WAIT_FOR_SET_INTERVAL: "5s"
33 WAIT_FOR_SET_TIMEOUT: "2m"
34---
35apiVersion: apps/v1
36kind: Deployment
37metadata:
38 name: clusterctl
39 labels:
40 platform.edge.ncr.com/component: clusterctl
41spec:
42 replicas: 1
43 selector:
44 matchLabels:
45 platform.edge.ncr.com/component: clusterctl
46 template:
47 metadata:
48 labels:
49 platform.edge.ncr.com/component: clusterctl
50 spec:
51 serviceAccount: clusterctl
52 containers:
53 - name: clusterctl
54 image: bzl://cmd/edge/clusterctl:container_push
55 ports:
56 - name: metrics
57 containerPort: 8080
58 envFrom:
59 - configMapRef:
60 name: clusterctl
61 - secretRef:
62 name: ldkey
63 - secretRef:
64 name: edge-totp-secret-key
65 - secretRef:
66 name: edge-bsl
67 resources:
68 limits:
69 cpu: "2000m"
70 memory: "8Gi"
71 requests:
72 cpu: "1024m"
73 memory: "2Gi"
74 imagePullPolicy: IfNotPresent
75 imagePullSecrets:
76 - name: edge-docker-pull-secret
77---
78apiVersion: v1
79kind: Service
80metadata:
81 name: clusterctl
82 labels:
83 platform.edge.ncr.com/component: clusterctl
84spec:
85 selector:
86 platform.edge.ncr.com/component: clusterctl
87 ports:
88 - name: metrics
89 port: 8080
90---
91apiVersion: monitoring.coreos.com/v1
92kind: ServiceMonitor
93metadata:
94 name: clusterctl
95 labels:
96 platform.edge.ncr.com/component: clusterctl
97 annotations:
98 monitoring.edge.ncr.com/allowed-metrics: |
99 edge_clusterctl_reconcile_condition_status
100 edge_clusterctl_reconcile_duration_seconds_sum
101 edge_clusterctl_reconcile_duration_seconds_count
102 edge_clusterctl_reconcile_duration_seconds_bucket
103 edge_clusterctl_db_status_writes_total
104 edge_clusterctl_db_errors_total
105 edge_clusterctl_plugin_execution_time
106 edge_clusterctl_plugin_execution_error
107 edge_clusterctl_plugin_finalizer_time
108 edge_clusterctl_plugin_finalizer_error
109 edge_clusterctl_registered_plugins_count
110 edge_gke_clusterctl_reconcile_condition_status
111 edge_gke_clusterctl_reconcile_duration_seconds_sum
112 edge_gke_clusterctl_reconcile_duration_seconds_count
113 edge_gke_clusterctl_reconcile_duration_seconds_bucket
114 workqueue_depth
115 workqueue_adds_total
116 workqueue_queue_duration_seconds
117 workqueue_work_duration_seconds
118 workqueue_unfinished_work_seconds
119 workqueue_longest_running_processor_seconds
120 workqueue_retries_total
121 controller_runtime_reconcile_errors_total
122 controller_runtime_reconcile_time_seconds
123 controller_runtime_max_concurrent_reconciles
124 controller_runtime_reconcile_total
125spec:
126 selector:
127 matchLabels:
128 platform.edge.ncr.com/component: clusterctl
129 endpoints:
130 - port: metrics
View as plain text