Fixes applied as reported by yamllint.
Change-Id: I8bd30d49e728715fdc696bb984fbca842ac1c2b8
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
127 files changed:
#/*Copyright 2019 Intel Corporation, Inc
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
#/*Copyright 2019 Intel Corporation, Inc
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
#/*
# * Copyright 2019 Intel Corporation, Inc
# *
#/*
# * Copyright 2019 Intel Corporation, Inc
# *
#/*Copyright 2019 Intel Corporation, Inc
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
#/*Copyright 2019 Intel Corporation, Inc
# *
# * Licensed under the Apache License, Version 2.0 (the "License");
#/*
# * Copyright 2019 Intel Corporation, Inc
# *
#/*
# * Copyright 2019 Intel Corporation, Inc
# *
image: "docker.io/istio/node-agent-k8s:1.2.2"
nodeAgent:
enabled: true
image: "docker.io/istio/node-agent-k8s:1.2.2"
nodeAgent:
enabled: true
- image : "docker.io/istio/node-agent-k8s:1.2.2"
+ image: "docker.io/istio/node-agent-k8s:1.2.2"
containers:
- name: keycloak
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
containers:
- name: keycloak
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
{{ toYaml .Values.env | indent 8 }}
ports:
{{ toYaml .Values.ports | indent 8 }}
{{ toYaml .Values.env | indent 8 }}
ports:
{{ toYaml .Values.ports | indent 8 }}
image:
repository: jboss/keycloak
tag: 6.0.1
image:
repository: jboss/keycloak
tag: 6.0.1
- pullPolicy: IfNotPresent
+ pullPolicy: IfNotPresent
spec:
replicas: 1
selector:
spec:
replicas: 1
selector:
useAllDevices: false
config:
databaseSizeMB: "1024"
useAllDevices: false
config:
databaseSizeMB: "1024"
- journalSizeMB: "1024"
\ No newline at end of file
clusterNamespace: rook-ceph
# Specify the filesystem type of the volume. If not specified, it will use `ext4`.
fstype: xfs
clusterNamespace: rook-ceph
# Specify the filesystem type of the volume. If not specified, it will use `ext4`.
fstype: xfs
-# Optional, default reclaimPolicy is "Delete". Other options are: "Retain", "Recycle" as documented in https://kubernetes.io/docs/concepts/storage/storage-classes/
\ No newline at end of file
+# Optional, default reclaimPolicy is "Delete". Other options are: "Retain", "Recycle" as documented in https://kubernetes.io/docs/concepts/storage/storage-classes/
apiVersion: v1
appVersion: "1.0"
apiVersion: v1
appVersion: "1.0"
-description: Cadvisor Helm Chart
+description: Cadvisor Helm Chart
name: cadvisor
version: 0.1.0
name: cadvisor
version: 0.1.0
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
- name: {{ template "fullname" . }}
+ name: {{ template "fullname" . }}
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
apiVersion: v1
kind: Service
metadata:
apiVersion: v1
kind: Service
metadata:
labels:
app: cadvisor
release: {{ .Release.Name }}
labels:
app: cadvisor
release: {{ .Release.Name }}
selector:
{{ include "rangeskipempty" .Values.cadvisor_prometheus.service.selector | indent 4 }}
ports:
selector:
{{ include "rangeskipempty" .Values.cadvisor_prometheus.service.selector | indent 4 }}
ports:
- - name: cadvisor-prometheus
+ - name: cadvisor-prometheus
{{- if eq .Values.cadvisor_prometheus.service.type "NodePort" }}
nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }}
{{- end }}
{{- if eq .Values.cadvisor_prometheus.service.type "NodePort" }}
nodePort: {{ .Values.global.nodePortPrefix }}{{ .Values.cadvisor_prometheus.service.nodePort }}
{{- end }}
hostPath:
path: {{ $mount.hostPath }}
{{- end }}
hostPath:
path: {{ $mount.hostPath }}
{{- end }}
- {{- end }}
\ No newline at end of file
- name: metrics
port: 9100
protocol: TCP
- name: metrics
port: 9100
protocol: TCP
-{{- end }}
\ No newline at end of file
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
resourceNames:
- {{ template "prometheus-node-exporter.fullname" . }}
{{- end }}
resourceNames:
- {{ template "prometheus-node-exporter.fullname" . }}
{{- end }}
name: {{ template "prometheus-node-exporter.serviceAccountName" . }}
labels:
app: {{ template "prometheus-node-exporter.name" . }}
name: {{ template "prometheus-node-exporter.serviceAccountName" . }}
labels:
app: {{ template "prometheus-node-exporter.name" . }}
- chart: {{ template "prometheus-node-exporter.chart" . }}
+ chart: {{ template "prometheus-node-exporter.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
{{- end -}}
{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
{{- end -}}
-{{- end -}}
\ No newline at end of file
- - watch
\ No newline at end of file
subjects:
- kind: ServiceAccount
name: {{ template "prometheus.serviceAccountName" . }}
subjects:
- kind: ServiceAccount
name: {{ template "prometheus.serviceAccountName" . }}
- namespace: {{ .Release.Namespace }}
\ No newline at end of file
+ namespace: {{ .Release.Namespace }}
- port: cadvisor-prometheus
interval: 10s
path: /metrics
- port: cadvisor-prometheus
interval: 10s
path: /metrics
resources: {}
service:
type: ClusterIP
resources: {}
service:
type: ClusterIP
# Enable or disable components
#################################################################
# Enable or disable components
#################################################################
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
maintainers:
- name: ppatierno
- name: scholzj
maintainers:
- name: ppatierno
- name: scholzj
-- name: tombentley
\ No newline at end of file
- create
- delete
- patch
- create
- delete
- patch
- - update
\ No newline at end of file
name: strimzi-cluster-operator-namespaced
apiGroup: rbac.authorization.k8s.io
{{- end }}
name: strimzi-cluster-operator-namespaced
apiGroup: rbac.authorization.k8s.io
{{- end }}
-{{- end }}
\ No newline at end of file
- create
- delete
- patch
- create
- delete
- patch
- - update
\ No newline at end of file
resources:
- events
verbs:
resources:
- events
verbs:
- - create
\ No newline at end of file
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway s3 {{ .Values.s3gateway.serviceEndpoint }}" ]
{{- else }}
{{- if .Values.azuregateway.enabled }}
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway s3 {{ .Values.s3gateway.serviceEndpoint }}" ]
{{- else }}
{{- if .Values.azuregateway.enabled }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway azure" ]
{{- else }}
{{- if .Values.gcsgateway.enabled }}
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway azure" ]
{{- else }}
{{- if .Values.gcsgateway.enabled }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway gcs {{ .Values.gcsgateway.projectId }}" ]
{{- else }}
{{- if .Values.ossgateway.enabled }}
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway gcs {{ .Values.gcsgateway.projectId }}" ]
{{- else }}
{{- if .Values.ossgateway.enabled }}
- command: [ "/bin/sh",
- "-ce",
- "cp /tmp/config.json {{ .Values.configPath }} &&
+ command: [ "/bin/sh",
+ "-ce",
+ "cp /tmp/config.json {{ .Values.configPath }} &&
/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway oss {{ .Values.ossgateway.endpointURL }}" ]
{{- else }}
{{- if .Values.nasgateway.enabled }}
/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway oss {{ .Values.ossgateway.endpointURL }}" ]
{{- else }}
{{- if .Values.nasgateway.enabled }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway nas {{ .Values.mountPath }}" ]
{{- else }}
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway nas {{ .Values.mountPath }}" ]
{{- else }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} server {{ .Values.mountPath }}" ]
{{- end }}
{{- end }}
"/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} server {{ .Values.mountPath }}" ]
{{- end }}
{{- end }}
kubernetes.io/ingress.class: gloo
path: /.*
hosts:
kubernetes.io/ingress.class: gloo
path: /.*
hosts:
- name: v1alpha1
served: true
storage: true
- name: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
- name: v1alpha1
served: true
storage: true
- name: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "collectd-operator"
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "collectd-operator"
-{{- end }}
\ No newline at end of file
- collectdglobals
verbs:
- '*'
- collectdglobals
verbs:
- '*'
-{{- end }}
\ No newline at end of file
kind: ClusterRole
name: collectd-operator
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: collectd-operator
apiGroup: rbac.authorization.k8s.io
-{{- end }}
\ No newline at end of file
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
-{{- end }}
\ No newline at end of file
spec:
clusterName: {{ .Values.etcdCluster.name }}
{{ toYaml .Values.backupOperator.spec | indent 2 }}
spec:
clusterName: {{ .Values.etcdCluster.name }}
{{ toYaml .Values.backupOperator.spec | indent 2 }}
-{{- end}}
\ No newline at end of file
app: {{ template "etcd-backup-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
app: {{ template "etcd-backup-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
{{ toYaml .Values.etcdCluster.tls | indent 4 }}
{{- end }}
{{- end }}
{{ toYaml .Values.etcdCluster.tls | indent 4 }}
{{- end }}
{{- end }}
app: {{ template "etcd-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
app: {{ template "etcd-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
{{ toYaml .Values.etcdCluster.tls | indent 6 }}
{{- end }}
{{ toYaml .Values.restoreOperator.spec | indent 2 }}
{{ toYaml .Values.etcdCluster.tls | indent 6 }}
{{- end }}
{{ toYaml .Values.restoreOperator.spec | indent 2 }}
-{{- end}}
\ No newline at end of file
app: {{ template "etcd-restore-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
app: {{ template "etcd-restore-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
tls:
{{ toYaml .Values.alertmanager.ingress.tls | indent 4 }}
{{- end }}
tls:
{{ toYaml .Values.alertmanager.ingress.tls | indent 4 }}
{{- end }}
-{{- end }}
\ No newline at end of file
matchLabels:
app: alertmanager
alertmanager: {{ template "prometheus-operator.fullname" . }}-alertmanager
matchLabels:
app: alertmanager
alertmanager: {{ template "prometheus-operator.fullname" . }}-alertmanager
-{{- end }}
\ No newline at end of file
max: 65535
readOnlyRootFilesystem: false
{{- end }}
max: 65535
readOnlyRootFilesystem: false
{{- end }}
{{- range $key, $val := .Values.alertmanager.templateFiles }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end }}
{{- range $key, $val := .Values.alertmanager.templateFiles }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end }}
-{{- end }}
\ No newline at end of file
url: http://{{ template "prometheus-operator.fullname" . }}-prometheus:9090/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }}
access: proxy
isDefault: true
url: http://{{ template "prometheus-operator.fullname" . }}-prometheus:9090/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }}
access: proxy
isDefault: true
-{{- end }}
\ No newline at end of file
"title": "etcd",
"version": 215
}
"title": "etcd",
"version": 215
}
-{{- end }}
\ No newline at end of file
"uid": "a6e7d1362e1ddbb79db21d5bb40d7137",
"version": 0
}
"uid": "a6e7d1362e1ddbb79db21d5bb40d7137",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "vkQ0UHxik",
"version": 1
}
"uid": "vkQ0UHxik",
"version": 1
}
-{{- end }}
\ No newline at end of file
"uid": "4ac4f123aae0ff6dbaf4f4f66120033b",
"version": 0
}
"uid": "4ac4f123aae0ff6dbaf4f4f66120033b",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "efa86fd1d0c121a26444b636a3f509a8",
"version": 0
}
"uid": "efa86fd1d0c121a26444b636a3f509a8",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "85a562078cdf77779eaa1add43ccec1e",
"version": 0
}
"uid": "85a562078cdf77779eaa1add43ccec1e",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "6581e46e4e5c7ba40a07646395ef7b23",
"version": 0
}
"uid": "6581e46e4e5c7ba40a07646395ef7b23",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "fa49a4706d07a042595b664c87fb33ea",
"version": 0
}
"uid": "fa49a4706d07a042595b664c87fb33ea",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "919b92a8e8041bd567af9edab12c840c",
"version": 0
}
"uid": "919b92a8e8041bd567af9edab12c840c",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "ab4f13a9892a76a4d21ce8c2445bf4ea",
"version": 0
}
"uid": "ab4f13a9892a76a4d21ce8c2445bf4ea",
"version": 0
}
-{{- end }}
\ No newline at end of file
"uid": "a31c1f46e6f727cb37c0d731a7245005",
"version": 0
}
"uid": "a31c1f46e6f727cb37c0d731a7245005",
"version": 0
}
-{{- end }}
\ No newline at end of file
kubectl delete crd prometheusrules.monitoring.coreos.com;
kubectl delete crd servicemonitors.monitoring.coreos.com;
restartPolicy: OnFailure
kubectl delete crd prometheusrules.monitoring.coreos.com;
kubectl delete crd servicemonitors.monitoring.coreos.com;
restartPolicy: OnFailure
-{{- end }}
\ No newline at end of file
-{{- end }}
\ No newline at end of file
- rules
type: array
version: v1
- rules
type: array
version: v1
-{{- end }}
\ No newline at end of file
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
-{{- end }}
\ No newline at end of file
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-alert-relabel-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs | b64enc | quote }}
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-alert-relabel-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigs | b64enc | quote }}
-{{- end }}
\ No newline at end of file
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-alertmanager-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs | b64enc | quote }}
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-alertmanager-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalAlertManagerConfigs | b64enc | quote }}
-{{- end }}
\ No newline at end of file
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-scrape-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalScrapeConfigs | b64enc | quote }}
{{ include "prometheus-operator.labels" . | indent 4 }}
data:
additional-scrape-configs.yaml: {{ toYaml .Values.prometheus.prometheusSpec.additionalScrapeConfigs | b64enc | quote }}
-{{- end }}
\ No newline at end of file
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
-{{- end }}
\ No newline at end of file
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
tls:
{{ toYaml .Values.prometheus.ingress.tls | indent 4 }}
{{- end }}
tls:
{{ toYaml .Values.prometheus.ingress.tls | indent 4 }}
{{- end }}
-{{- end }}
\ No newline at end of file
matchLabels:
app: prometheus
prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
matchLabels:
app: prometheus
prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
-{{- end }}
\ No newline at end of file
ruleSelector:
{{ toYaml .Values.prometheus.prometheusSpec.ruleSelector | indent 4}}
{{- else if .Values.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues }}
ruleSelector:
{{ toYaml .Values.prometheus.prometheusSpec.ruleSelector | indent 4}}
{{- else if .Values.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues }}
matchLabels:
app: {{ template "prometheus-operator.name" . }}
release: {{ .Release.Name | quote }}
matchLabels:
app: {{ template "prometheus-operator.name" . }}
release: {{ .Release.Name | quote }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
- configmaps
verbs:
- get
- configmaps
verbs:
- get
-{{- end}}
\ No newline at end of file
- list
- watch
{{- end }}
- list
- watch
{{- end }}
-{{- end }}
\ No newline at end of file
name: {{ template "prometheus-operator.prometheus.serviceAccountName" $ }}
namespace: {{ $.Release.Namespace }}
{{- end }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" $ }}
namespace: {{ $.Release.Namespace }}
{{- end }}
-{{- end }}
\ No newline at end of file
for: 5m
labels:
severity: critical
for: 5m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
for: 10m
labels:
severity: warning
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
expr: vector(1)
labels:
severity: none
expr: vector(1)
labels:
severity: none
-{{- end }}
\ No newline at end of file
label_replace(kube_pod_labels{job="kube-state-metrics"}, "pod_name", "$1", "pod", "(.*)")
)
record: namespace_name:kube_pod_container_resource_requests_cpu_cores:sum
label_replace(kube_pod_labels{job="kube-state-metrics"}, "pod_name", "$1", "pod", "(.*)")
)
record: namespace_name:kube_pod_container_resource_requests_cpu_cores:sum
-{{- end }}
\ No newline at end of file
labels:
quantile: '0.5'
record: cluster_quantile:apiserver_request_latencies:histogram_quantile
labels:
quantile: '0.5'
record: cluster_quantile:apiserver_request_latencies:histogram_quantile
-{{- end }}
\ No newline at end of file
for: 10m
labels:
severity: critical
for: 10m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
record: cluster:node_cpu:sum_rate5m
- expr: cluster:node_cpu_seconds_total:rate5m / count(sum(node_cpu_seconds_total) BY (instance, cpu))
record: cluster:node_cpu:ratio
record: cluster:node_cpu:sum_rate5m
- expr: cluster:node_cpu_seconds_total:rate5m / count(sum(node_cpu_seconds_total) BY (instance, cpu))
record: cluster:node_cpu:ratio
-{{- end }}
\ No newline at end of file
labels:
quantile: '0.5'
record: cluster_quantile:scheduler_binding_latency:histogram_quantile
labels:
quantile: '0.5'
record: cluster_quantile:scheduler_binding_latency:histogram_quantile
-{{- end }}
\ No newline at end of file
labels:
severity: critical
{{- end }}
labels:
severity: critical
{{- end }}
-{{- end }}
\ No newline at end of file
for: 1h
labels:
severity: warning
for: 1h
labels:
severity: warning
-{{- end }}
\ No newline at end of file
for: 15m
labels:
severity: warning
for: 15m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
for: 5m
labels:
severity: critical
for: 5m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
expr: histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{job="apiserver"}[5m]))) < 86400
labels:
severity: critical
expr: histogram_quantile(0.01, sum by (job, le) (rate(apiserver_client_certificate_expiration_seconds_bucket{job="apiserver"}[5m]))) < 86400
labels:
severity: critical
-{{- end }}
\ No newline at end of file
)
) by (node)
record: 'node:node_inodes_free:'
)
) by (node)
record: 'node:node_inodes_free:'
-{{- end }}
\ No newline at end of file
for: 10m
labels:
severity: warning
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
for: 10m
labels:
severity: warning
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
## Deploy node exporter as a daemonset to all nodes
##
nodeExporter:
## Deploy node exporter as a daemonset to all nodes
##
nodeExporter:
## Use the value configured in prometheus-node-exporter.podLabels
##
## Use the value configured in prometheus-node-exporter.podLabels
##
apiVersion: v1
appVersion: "1.0"
apiVersion: v1
appVersion: "1.0"
-description: A Helm chart for Visualization-operator
+description: A Helm chart for Visualization-operator
name: visualization-operator
version: 0.1.0
name: visualization-operator
version: 0.1.0
- name: v1alpha1
served: true
storage: true
- name: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "visualization-operator"
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "visualization-operator"
-{{- end }}
\ No newline at end of file
-{{- end }}
\ No newline at end of file
kind: Role
name: visualization-operator
apiGroup: rbac.authorization.k8s.io
kind: Role
name: visualization-operator
apiGroup: rbac.authorization.k8s.io
-{{- end }}
\ No newline at end of file
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
-{{- end }}
\ No newline at end of file
limits:
memory: 12Gi
cpu: '4'
limits:
memory: 12Gi
cpu: '4'
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
apiVersion: v1
kind: ConfigMap
metadata:
apiVersion: v1
kind: ConfigMap
metadata:
- name: custom-dashboard1
+ name: custom-dashboard1
labels:
app: {{ template "grafana.name" . }}
chart: {{ template "grafana.chart" . }}
labels:
app: {{ template "grafana.name" . }}
chart: {{ template "grafana.chart" . }}
# Administrator credentials when not using an existing secret (see below)
adminUser: admin
# Administrator credentials when not using an existing secret (see below)
adminUser: admin
# Use an existing secret for the admin user.
admin:
# Use an existing secret for the admin user.
admin:
editable: true
options:
path: /var/lib/grafana/dashboards/dashboard1
editable: true
options:
path: /var/lib/grafana/dashboards/dashboard1
dashboardsConfigMaps:
dashboard1: "custom-dashboard1"
dashboardsConfigMaps:
dashboard1: "custom-dashboard1"
data:
#hdfs_url: hdfs1-namenode-1.hdfs1-namenode.hdfs1:8020
hdfs_url: hdfs1-namenode:8020
data:
#hdfs_url: hdfs1-namenode-1.hdfs1-namenode.hdfs1:8020
hdfs_url: hdfs1-namenode:8020
-
\ No newline at end of file
#broker: kafka-cluster-kafka-1.kafka-cluster-kafka-brokers.hdfs1.svc.cluster.local:9092
broker: kafka-cluster-kafka-bootstrap:9092
group: grp1i
#broker: kafka-cluster-kafka-1.kafka-cluster-kafka-brokers.hdfs1.svc.cluster.local:9092
broker: kafka-cluster-kafka-bootstrap:9092
group: grp1i
- topic: newTopc9
\ No newline at end of file
-#Preserving a sample config of writer.
+#Preserving a sample config of writer.
#NOTE : The writer config shall come through the REST request
apiVersion: v1
kind: ConfigMap
#NOTE : The writer config shall come through the REST request
apiVersion: v1
kind: ConfigMap
-
\ No newline at end of file
value: "8080"
- name: BROKER
valueFrom:
value: "8080"
- name: BROKER
valueFrom:
name: configmap-kafka
key: broker
- name: GROUP
valueFrom:
name: configmap-kafka
key: broker
- name: GROUP
valueFrom:
name: configmap-kafka
key: group
- name: TOPIC
valueFrom:
name: configmap-kafka
key: group
- name: TOPIC
valueFrom:
name: configmap-kafka
key: topic
- name: HDFS_URL
valueFrom:
name: configmap-kafka
key: topic
- name: HDFS_URL
valueFrom:
name: configmap-hdfs
key: hdfs_url
resources:
name: configmap-hdfs
key: hdfs_url
resources:
limits:
memory: "1280Mi"
cpu: "5000m"
limits:
memory: "1280Mi"
cpu: "5000m"
- name: config-volume
configMap:
name: config-json
- name: config-volume
configMap:
name: config-json
- nodePort: 30303
port: 9393
targetPort: 9393
- nodePort: 30303
port: 9393
targetPort: 9393
-
\ No newline at end of file
TypesDB "/opt/collectd/share/collectd/vcmts.types.db"
#Hostname "localhost"
Interval 1
TypesDB "/opt/collectd/share/collectd/vcmts.types.db"
#Hostname "localhost"
Interval 1
- configMap: typesdb-configmap
+ configMap: typesdb-configmap
ReportByState false
ReportByCpu false
</Plugin>
ReportByState false
ReportByCpu false
</Plugin>
ValuesAbsolute false
ValuesPercentage true
</Plugin>
ValuesAbsolute false
ValuesPercentage true
</Plugin>
-
\ No newline at end of file
<Plugin "write_prometheus">
Port 9103
</Plugin>
<Plugin "write_prometheus">
Port 9103
</Plugin>
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
- value: "remote-config-operator"
\ No newline at end of file
+ value: "remote-config-operator"
apiVersion: onap.org/v1alpha1
apiVersion: onap.org/v1alpha1
-kind: PrometheusRemoteEndpoint
+kind: PrometheusRemoteEndpoint
metadata:
name: relabelconfig-m3db1
labels:
metadata:
name: relabelconfig-m3db1
labels:
action: drop
regex: (.*)
sourceLabels:
action: drop
regex: (.*)
sourceLabels:
- - __name__
\ No newline at end of file
datasources:
- name: InfluxDB
type: influxdb
datasources:
- name: InfluxDB
type: influxdb
- url: http://localhost:8086
+ url: http://localhost:8086
isDefault: false
access: proxy
withCredentials: true
isDefault: false
access: proxy
withCredentials: true
jsonData:
timeInterval: 15s
grafana:
jsonData:
timeInterval: 15s
grafana:
- url: http://vis-grafana.default.svc.cluster.local
+ url: http://vis-grafana.default.svc.cluster.local
username: admin
password: admin
username: admin
password: admin
type: prometheus
url: http://cp-prometheus-prometheus:9090
isDefault: true
type: prometheus
url: http://cp-prometheus-prometheus:9090
isDefault: true
withCredentials: true
basicAuth: true
basicAuthUser: user
withCredentials: true
basicAuth: true
basicAuthUser: user
queryTimeout: 50s
readOnly: false
grafana:
queryTimeout: 50s
readOnly: false
grafana:
- url: http://vis-grafana.default.svc.cluster.local
+ url: http://vis-grafana.default.svc.cluster.local
username: admin
password: admin
username: admin
password: admin
apiVersion: v1
appVersion: "1.0"
apiVersion: v1
appVersion: "1.0"
-description: Helm chart for a sample promql query app
+description: Helm chart for a sample promql query app
name: promql_query_app
version: 0.1.0
name: promql_query_app
version: 0.1.0
metadata:
name: {{ if .Values.prometheus.configMapName }}{{ .Values.prometheus.configMapName }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
data:
metadata:
name: {{ if .Values.prometheus.configMapName }}{{ .Values.prometheus.configMapName }}{{ else }}{{ template "promql_query_app.fullname" . }}{{ end }}
data:
- prometheus_endpoint: {{ .Values.prometheus.serverURL }}
\ No newline at end of file
+ prometheus_endpoint: {{ .Values.prometheus.serverURL }}
tolerations: []
affinity: {}
tolerations: []
affinity: {}
appVersion: "1.0"
description: "A sample horovod application which runs the MNIST application using Tensorflow as backend"
name: sample-horovod-app-keras-mnist-advanced
appVersion: "1.0"
description: "A sample horovod application which runs the MNIST application using Tensorflow as backend"
name: sample-horovod-app-keras-mnist-advanced
image:
repository: spark-tf-keras-horovod-pytorch
tag: latest
image:
repository: spark-tf-keras-horovod-pytorch
tag: latest
- repository: spark-tf-keras-horovod-pytorch
+ repository: spark-tf-keras-horovod-pytorch
tag: latest
pullPolicy: Never
args:
tag: latest
pullPolicy: Never
args:
yes | cp /etc/secret-volume/authorized_keys /root/.ssh/authorized_keys
set -e
fi
yes | cp /etc/secret-volume/authorized_keys /root/.ssh/authorized_keys
set -e
fi
for i in `cat $1 | awk '{print $(1)}'`;do
if [[ "$i" != *"master" ]];then
retry 30 ssh -o ConnectTimeout=2 -q $i exit
for i in `cat $1 | awk '{print $(1)}'`;do
if [[ "$i" != *"master" ]];then
retry 30 ssh -o ConnectTimeout=2 -q $i exit
if [ $? -ne 0 ]; then
exit 1
fi
if [ $? -ne 0 ]; then
exit 1
fi
}
updateSSHPort
runCheckSSH $1
worker.run: |
#!/bin/bash
set -x
}
updateSSHPort
runCheckSSH $1
worker.run: |
#!/bin/bash
set -x
mkdir -p /root/.ssh
rm -f /root/.ssh/config
touch /root/.ssh/config
mkdir -p /root/.ssh
rm -f /root/.ssh/config
touch /root/.ssh/config
spec:
clusterIP: None
ports:
spec:
clusterIP: None
ports:
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
- name: USESECRETS
value: "{{ .Values.ssh.useSecrets }}"
{{- end }}
- name: USESECRETS
value: "{{ .Values.ssh.useSecrets }}"
{{- end }}
- {{- if .Values.master.env }}
+ {{- if .Values.master.env }}
{{- range $key, $value := .Values.master.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- range $key, $value := .Values.master.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- if .Values.volumeMounts }}
{{ toYaml .Values.volumeMounts | indent 8 }}
{{- end }}
{{- if .Values.volumeMounts }}
{{ toYaml .Values.volumeMounts | indent 8 }}
{{- end }}
- /horovod/generated/run.sh
args:
- /horovod/generated/run.sh
args:
-{{ toYaml .Values.master.args | indent 10 }}
+{{ toYaml .Values.master.args | indent 10 }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.ssh.useSecrets }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.ssh.useSecrets }}
- name: USESECRETS
value: "{{ .Values.ssh.useSecrets }}"
{{- end }}
- name: USESECRETS
value: "{{ .Values.ssh.useSecrets }}"
{{- end }}
- {{- if .Values.master.env }}
+ {{- if .Values.master.env }}
{{- range $key, $value := .Values.master.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- end }}
{{- range $key, $value := .Values.master.env }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- end }}
- /horovod/generated/waitWorkersReady.sh
args:
- /horovod/generated/hostfile
- /horovod/generated/waitWorkersReady.sh
args:
- /horovod/generated/hostfile
data:
host-key: {{ .Values.ssh.hostKey | b64enc | quote }}
host-key-pub: {{ .Values.ssh.hostKeyPub | b64enc | quote }}
data:
host-key: {{ .Values.ssh.hostKey | b64enc | quote }}
host-key-pub: {{ .Values.ssh.hostKeyPub | b64enc | quote }}
-{{- end }}
\ No newline at end of file
spec:
clusterIP: None
ports:
spec:
clusterIP: None
ports:
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
kind: SparkApplication
metadata:
name: {{ .Values.nameOfTheSparkApp }}
kind: SparkApplication
metadata:
name: {{ .Values.nameOfTheSparkApp }}
- namespace: {{ .Release.Namespace }}
+ namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.programmingLanguageType }}
mode: {{ .Values.modeOfSparkApp | default "cluster" }}
spec:
type: {{ .Values.programmingLanguageType }}
mode: {{ .Values.modeOfSparkApp | default "cluster" }}
imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }}
mainClass: {{ .Values.mainClassOfTheSparkApp }}
mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }}
imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }}
mainClass: {{ .Values.mainClassOfTheSparkApp }}
mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }}
{{- range .Values.argumentsOfTheSparkProgram }}
- {{ . }}
{{ end }}
{{- range .Values.argumentsOfTheSparkProgram }}
- {{ . }}
{{ end }}
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
#===========================KUBERNETES POD RELATED CONFIGs========================
image: spark-tf-keras-horo:latest
imagePullPolicy: Never
#===========================KUBERNETES POD RELATED CONFIGs========================
image: spark-tf-keras-horo:latest
imagePullPolicy: Never
hostpath: /tmp
hostpathType: Directory
hostpath: /tmp
hostpathType: Directory
#============================SPARK APP RELATED CONFIGs=============================
#============================SPARK APP RELATED CONFIGs=============================
-
-nameOfTheSparkApp: spark-apache-logs2
+nameOfTheSparkApp: spark-apache-logs2
# Python or Scala supported.
programmingLanguageType: Scala
modeOfSparkApp: cluster
mainClassOfTheSparkApp: ApacheLogAnalysis
# can be http path, s3 path, minio path
# Python or Scala supported.
programmingLanguageType: Scala
modeOfSparkApp: cluster
mainClassOfTheSparkApp: ApacheLogAnalysis
# can be http path, s3 path, minio path
-mainApplicationFileOfTheSparkApp: https://github.com/mohanraj1311/ApacheLogAnalysisJar/raw/master/analysisofapachelogs_2.11-0.1.jar
+mainApplicationFileOfTheSparkApp: https://github.com/mohanraj1311/ApacheLogAnalysisJar/raw/master/analysisofapachelogs_2.11-0.1.jar
argumentsOfTheSparkProgram:
argumentsOfTheSparkProgram:
- - hdfs://hdfs-1-namenode-1.hdfs-1-namenode.hdfs1.svc.cluster.local:8020/data/apache-logs
-
-
+ - hdfs://hdfs-1-namenode-1.hdfs-1-namenode.hdfs1.svc.cluster.local:8020/data/apache-logs
#============================SPARK DRIVER RELATED CONFIGs=========================
driverCores: 0.1
driverCoreLimit: 200m
driverMemory: 1024m
driverVolumeMountsName: test-volume
#============================SPARK DRIVER RELATED CONFIGs=========================
driverCores: 0.1
driverCoreLimit: 200m
driverMemory: 1024m
driverVolumeMountsName: test-volume
-driverVolumeMountPath: /tmp
-
-
+driverVolumeMountPath: /tmp
#============================SPARK EXECUTOR RELATED CONFIGs=======================
#============================SPARK EXECUTOR RELATED CONFIGs=======================
-executorCores: 1
-executorInstances: 1
+executorCores: 1
+executorInstances: 1
executorMemory: 512m
executorVolumeMountsName: test-volume
executorVolumeMountPath: /tmp
executorMemory: 512m
executorVolumeMountsName: test-volume
executorVolumeMountPath: /tmp
#===========================HADOOP RELATED CONFIGs===============================
# config map of the hdfs
hadoopConfigMap: hdfs-1-config
#===========================HADOOP RELATED CONFIGs===============================
# config map of the hdfs
hadoopConfigMap: hdfs-1-config
###################################################################################
###################################################################################