Skip to content

Commit e5b1f34

Browse files
Merge pull request #733 from openstack-k8s-operators/OSPRH-14663/add-network-attachment-kuttl-test
Update metricStorage NAD kuttl tests
2 parents c5fd851 + 2c40254 commit e5b1f34

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

tests/kuttl/suites/metricstorage/tests/06-deploy-edpm-resources.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ spec:
1414
retention: 24h
1515
persistent:
1616
pvcStorageRequest: 20G
17-
networkAttachments:
18-
- ctlplane
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: prometheus-telemetry-kuttl-metricstorage-0
5+
ownerReferences:
6+
- kind: StatefulSet
7+
name: prometheus-telemetry-kuttl-metricstorage
8+
annotations:
9+
k8s.v1.cni.cncf.io/networks: '[{"name":"ctlplane","namespace":"telemetry-kuttl-tests","interface":"ctlplane"}]'
10+
spec:
11+
containers:
12+
- name: prometheus
13+
volumeMounts:
14+
- mountPath: /etc/prometheus/config_out
15+
name: config-out
16+
readOnly: true
17+
- mountPath: /etc/prometheus/certs
18+
name: tls-assets
19+
readOnly: true
20+
- mountPath: /prometheus
21+
name: prometheus-telemetry-kuttl-metricstorage-db
22+
- mountPath: /etc/prometheus/secrets/combined-ca-bundle
23+
name: secret-combined-ca-bundle
24+
readOnly: true
25+
- mountPath: /etc/prometheus/rules/prometheus-telemetry-kuttl-metricstorage-rulefiles-0
26+
name: prometheus-telemetry-kuttl-metricstorage-rulefiles-0
27+
- mountPath: /etc/prometheus/web_config/web-config.yaml
28+
name: web-config
29+
readOnly: true
30+
subPath: web-config.yaml
31+
- mountPath: /etc/prometheus/web_config/secret/cert-metric-storage-prometheus-svc-key
32+
readOnly: true
33+
- mountPath: /etc/prometheus/web_config/secret/cert-metric-storage-prometheus-svc-cert
34+
readOnly: true
35+
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
36+
readOnly: true
37+
- name: config-reloader
38+
- name: thanos-sidecar
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: k8s.cni.cncf.io/v1
2+
kind: NetworkAttachmentDefinition
3+
metadata:
4+
labels:
5+
osp/net: ctlplane
6+
name: ctlplane
7+
spec:
8+
config: |
9+
{
10+
"cniVersion": "0.3.1",
11+
"name": "ctlplane",
12+
"type": "macvlan",
13+
"master": "enp7s0",
14+
"ipam": {
15+
"type": "whereabouts",
16+
"range": "172.20.250.0/24",
17+
"range_start": "172.20.250.30",
18+
"range_end": "172.20.250.70"
19+
}
20+
}
21+
---
22+
apiVersion: telemetry.openstack.org/v1beta1
23+
kind: MetricStorage
24+
metadata:
25+
name: telemetry-kuttl-metricstorage
26+
spec:
27+
monitoringStack:
28+
alertingEnabled: true
29+
scrapeInterval: 30s
30+
storage:
31+
strategy: persistent
32+
retention: 24h
33+
persistent:
34+
pvcStorageRequest: 20G
35+
prometheusTls:
36+
caBundleSecretName: combined-ca-bundle
37+
secretName: cert-metric-storage-prometheus-svc
38+
dataplaneNetwork: ctlplane
39+
networkAttachments:
40+
- ctlplane

0 commit comments

Comments
 (0)