-
Notifications
You must be signed in to change notification settings - Fork 44
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
c06f496
commit 0ac1976
Showing
10 changed files
with
288 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,24 @@ | ||
apiVersion: v2 | ||
name: scoop | ||
description: A Helm chart for Kubernetes | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.16.0" |
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,33 @@ | ||
# Source: deployment-chart_4-18-0/templates/generic.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
annotations: | ||
rbac.authorization.kubernetes.io/autoupdate: "true" | ||
name: read-only-cluster-role-scoop | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- '*' | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- '*' | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- '*' | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
--- |
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,14 @@ | ||
|
||
# Source: deployment-chart_4-18-0/templates/generic.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: read-only-user-crb-scoop | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: read-only-cluster-role-scoop | ||
subjects: | ||
- kind: ServiceAccount | ||
name: scoop-sa | ||
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }} |
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,14 @@ | ||
{{- if $.Values.ConfigMap.enabled }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
- name: "scoop-config" | ||
- namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }} | ||
{{- if $.Values.ConfigMap.data }} | ||
data: | ||
{{ toYaml $.Values.ConfigMap.data | indent 2 }} | ||
{{- 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,70 @@ | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: "release-name-deployment-chart-4-18-0" | ||
labels: | ||
app: "deployment-chart-4-18-0" | ||
chart: "deployment-chart-4-18-0-4.18.0" | ||
release: "release-name" | ||
{{- if $.Values.labels }} | ||
{{ toYaml $.Values.labels | nindent 4 }} | ||
{{- end }} | ||
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: "deployment-chart-4-18-0" | ||
release: "release-name" | ||
replicas: 1 | ||
minReadySeconds: 60 | ||
template: | ||
metadata: | ||
labels: | ||
app: "deployment-chart-4-18-0" | ||
release: "release-name" | ||
{{- if $.Values.labels }} | ||
{{ toYaml $.Values.labels | indent 4 }} | ||
{{- end }} | ||
spec: | ||
serviceAccount: sa-scoop | ||
serviceAccountName: sa-scoop | ||
terminationGracePeriodSeconds: 30 | ||
imagePullSecrets: | ||
- name: {{ $.Values.imagePullSecrets }} | ||
restartPolicy: Always | ||
containers: | ||
- name: "deployment-chart-4-18-0" | ||
image: {{ $.Values.image.name }} | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- name: app | ||
containerPort: {{ $.Values.containerPort }} | ||
protocol: TCP | ||
{{- if $.Values.env }} | ||
env: | ||
{{ toYaml $.Values.env | indent 12 }} | ||
{{- end }} | ||
|
||
{{- if or $.Values.ConfigMap.data $.Values.secrets.data }} | ||
envFrom: | ||
{{- if $.Values.ConfigMap.data }} | ||
- configMapRef: | ||
name: "scoop-config" | ||
data: | ||
{{ toYaml $.Values.ConfigMap.data | indent 16 }} | ||
{{- end }} | ||
{{- end}} | ||
|
||
{{- if $.Values.resources }} | ||
resources: | ||
{{ toYaml $.Values.resources | indent 12 }} | ||
{{- end }} | ||
|
||
{{- if $.Values.volumeMounts }} | ||
volumeMounts: | ||
{{ toYaml $.Values.volumeMounts | indent 12 }} | ||
{{- end }} | ||
revisionHistoryLimit: 3 | ||
strategy: {} | ||
|
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,13 @@ | ||
{{- if $.Values.secrets.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: "scoop-secret" | ||
namespace: {{ $.Values.scoopNamespace | default .Release.Namespace }} | ||
type: Opaque | ||
{{- if $.Values.secrets.data }} | ||
data: | ||
{{ toYaml $.Values.secrets.data | indent 2 }} | ||
{{- 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,27 @@ | ||
# deployment-chart-4-18-0-4.18.0urce: deployment-chart-4-18-0/templates/service.yaml | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: "release-name-deployment-chart-4-18-0-service" | ||
labels: | ||
app: "deployment-chart-4-18-0" | ||
release: "release-name" | ||
{{- if $.Values.labels }} | ||
{{ toYaml .Values.labels | indent 2 }} | ||
{{- end }} | ||
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }} | ||
|
||
spec: | ||
{{- with $.Values.service.type }} | ||
type: {{ $.Values.service.type }} | ||
{{- end }} | ||
ports: | ||
{{- with $.Values.service.port }} | ||
- port: {{ $.Values.service.port }} | ||
{{- end }} | ||
targetPort: 80 | ||
protocol: TCP | ||
name: app | ||
selector: | ||
app: "deployment-chart-4-18-0" | ||
|
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,12 @@ | ||
# Source: deployment-chart-4-18-0/templates/generic.yaml | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: scoop-sa | ||
#namespace: monitoring | ||
namespace: {{ $.Values.scoopnamespace | default .Release.Namespace }} | ||
|
||
|
||
|
||
|
||
|
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,58 @@ | ||
scoopnamespace: monitoring | ||
|
||
service: | ||
type: ClusterIP | ||
port: 80 | ||
|
||
replicacount: 1 | ||
imagePullSecrets: devtron-image-pull | ||
image: | ||
name: "nginx" | ||
|
||
containerPort: 80 | ||
|
||
env: | ||
- name: CONFIG-HASH | ||
value: 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b | ||
- name: SECRET-HASH | ||
value: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | ||
- name: DEVTRON-APP-NAME | ||
value: deployment-chart-4-18-0 | ||
- name: POD-NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: DEVTRON-CONTAINER-REPO | ||
value: "" | ||
- name: DEVTRON-CONTAINER-TAG | ||
value: "1-95af053" | ||
- name: X-PASS-KEY | ||
value: "random-string" | ||
- name: PASS-KEY | ||
value: "random-string" | ||
- name: RETENTION | ||
value: "10080" | ||
|
||
ConfigMap: | ||
name: "scoop-config" | ||
enabled: true | ||
data: | ||
key1: "key1value-1" | ||
|
||
secrets: | ||
name: "scoop-secret" | ||
enabled: true | ||
data: [] | ||
|
||
volumeMounts: [] | ||
|
||
resources: | ||
limits: | ||
cpu: "0.5" | ||
memory: 5Gi | ||
requests: | ||
cpu: "0.3" | ||
memory: 2Gi | ||
|
||
strategy: {} | ||
|