Fixes applied as reported by yamllint.
Change-Id: I8bd30d49e728715fdc696bb984fbca842ac1c2b8
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-
-
#/*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.
-
#/*
# * 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
# *
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 }}"
- env:
+ env:
{{ toYaml .Values.env | indent 8 }}
ports:
{{ toYaml .Values.ports | indent 8 }}
image:
repository: jboss/keycloak
tag: 6.0.1
- pullPolicy: IfNotPresent
+ pullPolicy: IfNotPresent
spec:
replicas: 1
selector:
useAllDevices: false
config:
databaseSizeMB: "1024"
- journalSizeMB: "1024"
\ No newline at end of file
+ journalSizeMB: "1024"
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"
-description: Cadvisor Helm Chart
+description: Cadvisor Helm Chart
name: cadvisor
version: 0.1.0
apiVersion: apps/v1beta2
kind: DaemonSet
metadata:
- name: {{ template "fullname" . }}
+ name: {{ template "fullname" . }}
labels:
app: {{ template "name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
apiVersion: v1
kind: Service
metadata:
- name: cadvisor
+ name: cadvisor
labels:
app: cadvisor
release: {{ .Release.Name }}
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 }}
hostPath:
path: {{ $mount.hostPath }}
{{- end }}
- {{- end }}
\ No newline at end of file
+ {{- end }}
- name: metrics
port: 9100
protocol: TCP
-{{- end }}
\ No newline at end of file
+{{- end }}
rules:
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
- verbs: ['use']
+ verbs: ['use']
resourceNames:
- {{ template "prometheus-node-exporter.fullname" . }}
{{- end }}
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 }}"
-imagePullSecrets:
+imagePullSecrets:
{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
{{- end -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
verbs:
- get
- list
- - watch
\ No newline at end of file
+ - watch
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
-
+
resources: {}
service:
type: ClusterIP
# Enable or disable components
#################################################################
-cadvisor:
+cadvisor:
enabled: true
-
+
collectd:
enabled: true
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
-
maintainers:
- name: ppatierno
- name: scholzj
-- name: tombentley
\ No newline at end of file
+- name: tombentley
- create
- delete
- patch
- - update
\ No newline at end of file
+ - update
name: strimzi-cluster-operator-namespaced
apiGroup: rbac.authorization.k8s.io
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
- create
- delete
- patch
- - update
\ No newline at end of file
+ - update
resources:
- events
verbs:
- - create
\ No newline at end of file
+ - create
#################################################################
# 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 }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/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 }}
- 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 }}
- command: [ "/bin/sh",
- "-ce",
+ command: [ "/bin/sh",
+ "-ce",
"/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 }}
ingress:
enabled: true
- annotations:
+ annotations:
kubernetes.io/ingress.class: gloo
path: /.*
hosts:
- name: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
+{{- end }}
- name: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
+{{- end }}
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "collectd-operator"
-{{- end }}
\ No newline at end of file
+{{- end }}
- collectdglobals
verbs:
- '*'
-{{- end }}
\ No newline at end of file
+{{- end }}
kind: ClusterRole
name: collectd-operator
apiGroup: rbac.authorization.k8s.io
-{{- end }}
\ No newline at end of file
+{{- end }}
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
-{{- end }}
\ No newline at end of file
+{{- end }}
spec:
clusterName: {{ .Values.etcdCluster.name }}
{{ toYaml .Values.backupOperator.spec | indent 2 }}
-{{- end}}
\ No newline at end of file
+{{- end}}
app: {{ template "etcd-backup-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
+{{- end }}
{{ toYaml .Values.etcdCluster.tls | indent 4 }}
{{- end }}
{{- end }}
-
app: {{ template "etcd-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
+{{- end }}
{{ toYaml .Values.etcdCluster.tls | indent 6 }}
{{- end }}
{{ toYaml .Values.restoreOperator.spec | indent 2 }}
-{{- end}}
\ No newline at end of file
+{{- end}}
app: {{ template "etcd-restore-operator.name" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
-{{- end }}
\ No newline at end of file
+{{- end }}
tls:
{{ toYaml .Values.alertmanager.ingress.tls | indent 4 }}
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
matchLabels:
app: alertmanager
alertmanager: {{ template "prometheus-operator.fullname" . }}-alertmanager
-{{- end }}
\ No newline at end of file
+{{- end }}
max: 65535
readOnlyRootFilesystem: false
{{- end }}
-
{{- range $key, $val := .Values.alertmanager.templateFiles }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
url: http://{{ template "prometheus-operator.fullname" . }}-prometheus:9090/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }}
access: proxy
isDefault: true
-{{- end }}
\ No newline at end of file
+{{- end }}
"title": "etcd",
"version": 215
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "a6e7d1362e1ddbb79db21d5bb40d7137",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "vkQ0UHxik",
"version": 1
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "4ac4f123aae0ff6dbaf4f4f66120033b",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "efa86fd1d0c121a26444b636a3f509a8",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "85a562078cdf77779eaa1add43ccec1e",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "6581e46e4e5c7ba40a07646395ef7b23",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "fa49a4706d07a042595b664c87fb33ea",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "919b92a8e8041bd567af9edab12c840c",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "ab4f13a9892a76a4d21ce8c2445bf4ea",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
"uid": "a31c1f46e6f727cb37c0d731a7245005",
"version": 0
}
-{{- end }}
\ No newline at end of file
+{{- end }}
kubectl delete crd prometheusrules.monitoring.coreos.com;
kubectl delete crd servicemonitors.monitoring.coreos.com;
restartPolicy: OnFailure
-{{- end }}
\ No newline at end of file
+{{- end }}
- get
- list
- watch
-{{- end }}
\ No newline at end of file
+{{- end }}
- rules
type: array
version: v1
-{{- end }}
\ No newline at end of file
+{{- end }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
-{{- end }}
\ No newline at end of file
+{{- end }}
{{ 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
+{{- end }}
{{ 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
+{{- end }}
{{ 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
+{{- end }}
verbs: ["get", "list", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
-{{- end }}
\ No newline at end of file
+{{- end }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
-
tls:
{{ toYaml .Values.prometheus.ingress.tls | indent 4 }}
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
matchLabels:
app: prometheus
prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
-{{- end }}
\ No newline at end of file
+{{- end }}
ruleSelector:
{{ toYaml .Values.prometheus.prometheusSpec.ruleSelector | indent 4}}
{{- else if .Values.prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues }}
- ruleSelector:
+ ruleSelector:
matchLabels:
app: {{ template "prometheus-operator.name" . }}
release: {{ .Release.Name | quote }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}
-
- configmaps
verbs:
- get
-{{- end}}
\ No newline at end of file
+{{- end}}
- list
- watch
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
name: {{ template "prometheus-operator.prometheus.serviceAccountName" $ }}
namespace: {{ $.Release.Namespace }}
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 5m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
+{{- end }}
expr: vector(1)
labels:
severity: none
-{{- end }}
\ No newline at end of file
+{{- end }}
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
+{{- end }}
labels:
quantile: '0.5'
record: cluster_quantile:apiserver_request_latencies:histogram_quantile
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 10m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
+{{- end }}
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
+{{- end }}
labels:
quantile: '0.5'
record: cluster_quantile:scheduler_binding_latency:histogram_quantile
-{{- end }}
\ No newline at end of file
+{{- end }}
labels:
severity: critical
{{- end }}
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 1h
labels:
severity: warning
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 15m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 5m
labels:
severity: critical
-{{- end }}
\ No newline at end of file
+{{- end }}
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
+{{- end }}
)
) by (node)
record: 'node:node_inodes_free:'
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
+{{- end }}
for: 10m
labels:
severity: warning
-{{- end }}
\ No newline at end of file
+{{- end }}
## Deploy node exporter as a daemonset to all nodes
##
nodeExporter:
- enabled: false
+ enabled: false
## Use the value configured in prometheus-node-exporter.podLabels
##
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: v1alpha1
served: true
storage: true
-{{- end }}
\ No newline at end of file
+{{- end }}
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "visualization-operator"
-{{- end }}
\ No newline at end of file
+{{- end }}
- '*'
verbs:
- '*'
-{{- end }}
\ No newline at end of file
+{{- end }}
kind: Role
name: visualization-operator
apiGroup: rbac.authorization.k8s.io
-{{- end }}
\ No newline at end of file
+{{- end }}
component: service-account
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
-{{- end }}
\ No newline at end of file
+{{- end }}
limits:
memory: 12Gi
cpu: '4'
-
-
#################################################################
# k8s Operator Day-0 configuration defaults.
#################################################################
-
apiVersion: v1
kind: ConfigMap
metadata:
- name: custom-dashboard1
+ name: custom-dashboard1
labels:
app: {{ template "grafana.name" . }}
chart: {{ template "grafana.chart" . }}
# Administrator credentials when not using an existing secret (see below)
adminUser: admin
-adminPassword: admin
+adminPassword: admin
# Use an existing secret for the admin user.
admin:
editable: true
options:
path: /var/lib/grafana/dashboards/dashboard1
-
+
dashboardsConfigMaps:
dashboard1: "custom-dashboard1"
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
- topic: newTopc9
\ No newline at end of file
+ topic: newTopc9
-#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
}
}
]
-
\ No newline at end of file
value: "8080"
- name: BROKER
valueFrom:
- configMapKeyRef:
+ configMapKeyRef:
name: configmap-kafka
key: broker
- name: GROUP
valueFrom:
- configMapKeyRef:
+ configMapKeyRef:
name: configmap-kafka
key: group
- name: TOPIC
valueFrom:
- configMapKeyRef:
+ configMapKeyRef:
name: configmap-kafka
key: topic
- name: HDFS_URL
valueFrom:
- configMapKeyRef:
+ configMapKeyRef:
name: configmap-hdfs
key: hdfs_url
resources:
limits:
memory: "1280Mi"
cpu: "5000m"
- volumes:
+ volumes:
- name: config-volume
configMap:
name: config-json
- nodePort: 30303
port: 9393
targetPort: 9393
-
\ No newline at end of file
TypesDB "/opt/collectd/share/collectd/vcmts.types.db"
#Hostname "localhost"
Interval 1
- configMap: typesdb-configmap
+ configMap: typesdb-configmap
ReportByState false
ReportByCpu false
</Plugin>
-
ValuesAbsolute false
ValuesPercentage true
</Plugin>
-
\ No newline at end of file
<Plugin "write_prometheus">
Port 9103
</Plugin>
-
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
-kind: PrometheusRemoteEndpoint
+kind: PrometheusRemoteEndpoint
metadata:
name: relabelconfig-m3db1
labels:
action: drop
regex: (.*)
sourceLabels:
- - __name__
\ No newline at end of file
+ - __name__
datasources:
- name: InfluxDB
type: influxdb
- url: http://localhost:8086
+ url: http://localhost:8086
isDefault: false
access: proxy
withCredentials: true
jsonData:
timeInterval: 15s
grafana:
- url: http://vis-grafana.default.svc.cluster.local
+ url: http://vis-grafana.default.svc.cluster.local
username: admin
password: admin
type: prometheus
url: http://cp-prometheus-prometheus:9090
isDefault: true
- access: direct
+ access: direct
withCredentials: true
basicAuth: true
basicAuthUser: user
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
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
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: {}
-
appVersion: "1.0"
description: "A sample horovod application which runs the MNIST application using Tensorflow as backend"
name: sample-horovod-app-keras-mnist-advanced
-version: 0.1.0
+version: 0.1.0
image:
repository: spark-tf-keras-horovod-pytorch
tag: latest
- pullPolicy: Never
+ pullPolicy: Never
master:
image:
- repository: spark-tf-keras-horovod-pytorch
+ repository: spark-tf-keras-horovod-pytorch
tag: latest
pullPolicy: Never
args:
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
if [ $? -ne 0 ]; then
exit 1
fi
- set -e
+ set -e
}
updateSSHPort
runCheckSSH $1
worker.run: |
#!/bin/bash
set -x
-
+
mkdir -p /root/.ssh
rm -f /root/.ssh/config
touch /root/.ssh/config
spec:
clusterIP: None
ports:
- - name: ssh
+ - name: ssh
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
- 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 }}"
{{- if .Values.volumeMounts }}
{{ toYaml .Values.volumeMounts | indent 8 }}
{{- end }}
- command:
+ command:
- /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 }}
- 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 }}
- command:
+ command:
- /horovod/generated/waitWorkersReady.sh
args:
- /horovod/generated/hostfile
data:
host-key: {{ .Values.ssh.hostKey | b64enc | quote }}
host-key-pub: {{ .Values.ssh.hostKeyPub | b64enc | quote }}
-{{- end }}
\ No newline at end of file
+{{- end }}
spec:
clusterIP: None
ports:
- - name: ssh
+ - name: ssh
port: {{ .Values.ssh.port }}
targetPort: {{ .Values.ssh.port }}
selector:
kind: SparkApplication
metadata:
name: {{ .Values.nameOfTheSparkApp }}
- namespace: {{ .Release.Namespace }}
+ namespace: {{ .Release.Namespace }}
spec:
type: {{ .Values.programmingLanguageType }}
mode: {{ .Values.modeOfSparkApp | default "cluster" }}
imagePullPolicy: {{ .Values.imagePullPolicy | default "IfNotPresent" }}
mainClass: {{ .Values.mainClassOfTheSparkApp }}
mainApplicationFile: {{ .Values.mainApplicationFileOfTheSparkApp }}
- arguments:
+ arguments:
{{- range .Values.argumentsOfTheSparkProgram }}
- {{ . }}
{{ end }}
# 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
hostpath: /tmp
hostpathType: Directory
-
-
#============================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
-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:
- - 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
-driverVolumeMountPath: /tmp
-
-
+driverVolumeMountPath: /tmp
#============================SPARK EXECUTOR RELATED CONFIGs=======================
-executorCores: 1
-executorInstances: 1
+executorCores: 1
+executorInstances: 1
executorMemory: 512m
executorVolumeMountsName: test-volume
executorVolumeMountPath: /tmp
-
-
#===========================HADOOP RELATED CONFIGs===============================
# config map of the hdfs
hadoopConfigMap: hdfs-1-config
-
###################################################################################
-
-
-
-