-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for csm-metrics-powerscale
Add powerscale configuration to support csm-metrics-powerscale: - Add karavi-metrics-powerscale.yaml, karavi-metrics-powerscale.yaml; - Add pscale configuration to karavi-observability-configmap.yaml, values.yaml, cert-manager.yaml and NOTES.txt; - Rollback otel-collecter and nginxProxy image version to 0.42.0 and 1.20; - Rollback tls settings for otel in otel-collector-config.yaml.
- Loading branch information
Showing
6 changed files
with
195 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
charts/karavi-observability/templates/karavi-metrics-powerscale-service-account.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{{ if .Values.karaviMetricsPowerscale.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Release.Name }}-metrics-powerscale-controller | ||
namespace: {{ .Release.Namespace }} | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ .Release.Name }}-metrics-powerscale-controller | ||
rules: | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["csinodes", "storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes", "nodes"] | ||
verbs: ["list"] | ||
- apiGroups: [""] | ||
resources: ["endpoints"] | ||
verbs: ["*"] | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ .Release.Name }}-metrics-powerscale-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ .Release.Name }}-metrics-powerscale-controller | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ .Release.Name }}-metrics-powerscale-controller | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
{{ end }} | ||
|
81 changes: 81 additions & 0 deletions
81
charts/karavi-observability/templates/karavi-metrics-powerscale.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{{ if .Values.karaviMetricsPowerscale.enabled }} | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: karavi-metrics-powerscale | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
name: karavi-metrics-powerscale | ||
spec: | ||
type: {{ .Values.karaviMetricsPowerscale.service.type }} | ||
ports: | ||
- name: karavi-metrics-powerscale | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
app.kubernetes.io/name: karavi-metrics-powerscale | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: karavi-metrics-powerscale | ||
labels: | ||
app.kubernetes.io/name: karavi-metrics-powerscale | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: karavi-metrics-powerscale | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
replicas: 1 | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: karavi-metrics-powerscale | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
spec: | ||
serviceAccount: {{ .Release.Name }}-metrics-powerscale-controller | ||
containers: | ||
- name: karavi-metrics-powerscale | ||
image: {{ .Values.karaviMetricsPowerscale.image }} | ||
resources: {} | ||
env: | ||
- name: POWERSCALE_METRICS_ENDPOINT | ||
value: "{{ .Values.karaviMetricsPowerscale.endpoint }}" | ||
- name: POWERSCALE_METRICS_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: TLS_ENABLED | ||
value: "true" | ||
volumeMounts: | ||
- name: isilon-creds | ||
mountPath: /isilon-creds | ||
- name: tls-secret | ||
mountPath: /etc/ssl/certs | ||
readOnly: true | ||
- name: karavi-metrics-powerscale-configmap | ||
mountPath: /etc/config | ||
volumes: | ||
- name: isilon-creds | ||
secret: | ||
secretName: isilon-creds | ||
- name: tls-secret | ||
secret: | ||
secretName: otel-collector-tls | ||
items: | ||
- key: tls.crt | ||
path: cert.crt | ||
- name: karavi-metrics-powerscale-configmap | ||
configMap: | ||
name: karavi-metrics-powerscale-configmap | ||
restartPolicy: Always | ||
status: {} | ||
|
||
{{ end }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters