-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3ba4d2
commit 76c423b
Showing
11 changed files
with
436 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,6 @@ | ||
apiVersion: v2 | ||
appVersion: 1.16.0 | ||
description: A Helm chart for Kubernetes | ||
name: evi-storage-rest | ||
type: application | ||
version: 3.0.3 |
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,75 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "storage-rest.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "storage-rest.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "storage-rest.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "storage-rest.labels" -}} | ||
helm.sh/chart: {{ include "storage-rest.chart" . }} | ||
{{ include "storage-rest.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "storage-rest.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "storage-rest.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "storage-rest.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "storage-rest.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: {{ .Values.configMap.name }} | ||
data: | ||
app.config: | | ||
GP_DATABASE = "hce" | ||
GP_HOST = "{{ .Values.configMap.sqlDB.addr }}" | ||
GP_PORT = "{{ .Values.configMap.sqlDB.port }}" | ||
GP_USER = "hce" | ||
GP_PASSWORD = "" | ||
MIN_GP_CONN_POOL = 10 | ||
MAX_GP_CONN_POOL = 100 | ||
hadoop.config: | | ||
[HDFS] | ||
nnPod0 = "{{ .Values.configMap.hdfs.nnService }}-0" | ||
nnPod1 = "{{ .Values.configMap.hdfs.nnService }}-1" | ||
addr = {{ .Values.configMap.hdfs.addr }} | ||
nnPort = {{ .Values.configMap.hdfs.port }} | ||
user = "" | ||
archivePath = {{ .Values.configMap.hdfs.archivePath }} | ||
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,82 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: evi-storage-rest | ||
labels: | ||
version: v1 | ||
annotations: | ||
container.apparmor.security.beta.kubernetes.io/storage-rest: runtime/default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: storage-rest | ||
version: v1 | ||
template: | ||
metadata: | ||
labels: | ||
app: storage-rest | ||
sidecar.istio.io/inject: "{{ .Values.istioInjection }}" | ||
version: v1 | ||
spec: | ||
nodeSelector: | ||
feature.node.kubernetes.io/cpu-cpuid.AVX512VNNI: 'true' | ||
feature.node.kubernetes.io/cpu-cpuid.AVX2: 'true' | ||
securityContext: | ||
seccompProfile: | ||
type: RuntimeDefault | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.repository }}:{{ .Values.image.Version }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
#command: ["/bin/sh"] | ||
args: ["-s", "{{ .Values.entrypoint.sleep }}", "-c", "{{ .Values.entrypoint.csvCounts }}"] | ||
livenessProbe: | ||
httpGet: | ||
path: {{ .Values.liveness.path }} | ||
port: {{ .Values.service.port }} | ||
httpHeaders: | ||
- name: {{ .Values.liveness.httpHeaders.name }} | ||
value: {{ .Values.liveness.httpHeaders.value }} | ||
initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} | ||
periodSeconds: {{ .Values.liveness.periodSeconds }} | ||
timeoutSeconds: {{ .Values.liveness.timeoutSeconds }} | ||
resources: | ||
requests: | ||
cpu: "20m" | ||
memory: 150Mi | ||
limits: | ||
cpu: "1" | ||
memory: 1Gi | ||
ports: | ||
- containerPort: {{ .Values.service.port }} | ||
volumeMounts: | ||
- name: storage-rest-secret-volume | ||
readOnly: true | ||
mountPath: "/home/rest_api/configure/auth" | ||
- name: storage-rest-cm-volume | ||
mountPath: "/home/rest_api/configure" | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 10 }} | ||
serviceAccountName: {{ .Values.serviceAccount.name }} | ||
volumes: | ||
- name: storage-rest-secret-volume | ||
secret: | ||
secretName: {{ .Values.secret.secretName }} | ||
- name: storage-rest-cm-volume | ||
configMap: | ||
name: {{ .Values.configMap.name }} |
26 changes: 26 additions & 0 deletions
26
charts/evi-storage-rest-3.0.3/templates/destinationrule.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,26 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
{{- if .Values.namespace.istioInjection.create -}} | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: storage-rest | ||
spec: | ||
host: {{ .Values.service.name }}.{{ .Values.namespace.value }}.svc.cluster.local | ||
subsets: | ||
- name: v1 | ||
labels: | ||
version: v1 | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Values.secret.secretName }} | ||
namespace: {{ .Values.namespace.value }} | ||
type: Opaque | ||
data: | ||
GP_PASSWORD: {{ required "A valid secret.auth.password is required!" .Values.secret.auth.password }} | ||
HDFS_USER: {{ required "A valid secret.auth.hdfsUser is required!" .Values.secret.auth.hdfsUser }} |
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,29 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: {{ .Values.service.name }} | ||
labels: | ||
app: storage-rest | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- port: {{ .Values.service.port }} | ||
name: http | ||
protocol: TCP | ||
targetPort: {{ .Values.service.targetPort }} | ||
selector: | ||
app: storage-rest |
22 changes: 22 additions & 0 deletions
22
charts/evi-storage-rest-3.0.3/templates/serviceaccount.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,22 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
{{- if .Values.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: {{ include "storage-rest.serviceAccountName" . }} | ||
labels: | ||
account: storage-rest | ||
{{- end -}} |
31 changes: 31 additions & 0 deletions
31
charts/evi-storage-rest-3.0.3/templates/virtualservice.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,31 @@ | ||
# INTEL CONFIDENTIAL | ||
# | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# This software and the related documents are Intel copyrighted materials, and your use of | ||
# them is governed by the express license under which they were provided to you (License). | ||
# Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, | ||
# disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# | ||
# This software and the related documents are provided as is, with no express or implied warranties, | ||
# other than those that are expressly stated in the License. | ||
|
||
--- | ||
{{- if .Values.namespace.istioInjection.create -}} | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
namespace: {{ .Values.namespace.value }} | ||
name: storage-rest | ||
spec: | ||
hosts: | ||
- {{ .Values.service.name }}.{{ .Values.namespace.value }}.svc.cluster.local | ||
http: | ||
- match: | ||
- uri: | ||
prefix: / | ||
route: | ||
- destination: | ||
host: {{ .Values.service.name }}.{{ .Values.namespace.value }}.svc.cluster.local | ||
subset: v1 | ||
{{- end -}} |
Oops, something went wrong.