Prometheus into 2nd cluster

Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
Carsten Schafer
2024-05-30 15:53:55 -04:00
parent 60ecc0687c
commit 120f175afc
2 changed files with 8 additions and 32 deletions

View File

@@ -97,3 +97,7 @@ kubectl edit ingressclass alb
# add under: metadata.annotations: # add under: metadata.annotations:
# ingressclass.kubernetes.io/is-default-class: "true" # ingressclass.kubernetes.io/is-default-class: "true"
``` ```
## Known issues
- When installing prometheus-operator the ingress class is not properly set and the host names may be wrong. To work this out run `kubectl -n monitoring edit ingress` and make sure each has ingressClassName set, and all host names are set appropriately. This is more likely for any other environment other than the default environment.

View File

@@ -17,6 +17,7 @@ environments:
certificateARNCICD: arn:aws:acm:ap-south-1:289708231103:certificate/2cc8c764-11fd-411d-bf7d-a93f488f3f6c certificateARNCICD: arn:aws:acm:ap-south-1:289708231103:certificate/2cc8c764-11fd-411d-bf7d-a93f488f3f6c
certificateARNLab: arn:aws:acm:ap-south-1:289708231103:certificate/5281be14-c5e6-45c5-8d5c-e8660c76fbcb certificateARNLab: arn:aws:acm:ap-south-1:289708231103:certificate/5281be14-c5e6-45c5-8d5c-e8660c76fbcb
- monitoring: - monitoring:
receiver: "slack-notifications"
namespace: monitoring namespace: monitoring
publicNamespaces: ['openwifi-qa01', 'openwifi-qa02', 'openwifi-dev01', 'openwifi-demo'] publicNamespaces: ['openwifi-qa01', 'openwifi-qa02', 'openwifi-dev01', 'openwifi-demo']
clusterName: TIP WLAN CI/CD clusterName: TIP WLAN CI/CD
@@ -45,8 +46,6 @@ environments:
enabled: true enabled: true
- k8s-dashboard: - k8s-dashboard:
enabled: true enabled: true
- portainer:
enabled: false
- metrics-server: - metrics-server:
enabled: true enabled: true
- external-dns: - external-dns:
@@ -89,6 +88,7 @@ environments:
certificateARNLab: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be certificateARNLab: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be
- monitoring: - monitoring:
namespace: monitoring namespace: monitoring
receiver: "null"
publicNamespaces: ['openwifi-qa03', 'openwifi-dev03'] publicNamespaces: ['openwifi-qa03', 'openwifi-dev03']
clusterName: TIP QA clusterName: TIP QA
- domain: lab.wlan.tip.build - domain: lab.wlan.tip.build
@@ -116,8 +116,6 @@ environments:
enabled: true enabled: true
- k8s-dashboard: - k8s-dashboard:
enabled: true enabled: true
- portainer:
enabled: false
- metrics-server: - metrics-server:
enabled: true enabled: true
- external-dns: - external-dns:
@@ -172,8 +170,6 @@ repositories:
url: https://braedon.github.io/helm url: https://braedon.github.io/helm
- name: core-dump-handler - name: core-dump-handler
url: https://ibm.github.io/core-dump-handler url: https://ibm.github.io/core-dump-handler
- name: portainer
url: https://portainer.github.io/k8s/
helmDefaults: helmDefaults:
force: false force: false
@@ -497,7 +493,7 @@ releases:
routes: routes:
- match: - match:
area: testbed area: testbed
receiver: "slack-notifications" receiver: "{{ .Environment.Values.monitoring.receiver }}"
receivers: receivers:
- name: "null" - name: "null"
@@ -901,30 +897,6 @@ releases:
targetPort: 5514 targetPort: 5514
protocol: TCP protocol: TCP
- name: portainer
condition: portainer.enabled
namespace: {{ .Environment.Values.monitoring.namespace }}
chart: portainer/portainer
version: 1.0.49
labels:
role: setup
group: monitoring
app: portainer
values:
- service:
type: ClusterIP
- tls:
force: true
- ingress:
ingressClassName: nginx-sso
enabled: true
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
hosts:
- host: k8s-admin{{ .Environment.Values.hostSuffix }}
paths:
- path: "/"
- name: simple-auth-roles - name: simple-auth-roles
condition: ingress.enabled condition: ingress.enabled
namespace: {{ .Environment.Values.monitoring.namespace }} namespace: {{ .Environment.Values.monitoring.namespace }}
@@ -992,7 +964,7 @@ releases:
<<: *default <<: *default
condition: alb-ingress.enabled condition: alb-ingress.enabled
chart: eks/aws-load-balancer-controller chart: eks/aws-load-balancer-controller
version: 1.6.1 version: 1.6.2
labels: labels:
role: setup role: setup
group: system group: system