Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"server":{"deployment":{"image_tag":"{{.Tag}}","image":"{{.Name}}"}},"pipelineName": "{{.PipelineName}}","releaseVersion":"{{.ReleaseVersion}}","deploymentType": "{{.DeploymentType}}", "app": "{{.App}}", "env": "{{.Env}}", "appMetrics": {{.AppMetrics}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: reference-chart_3-11-0
version: 3.11.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# Mandatory configs
replicaCount: 1
MinReadySeconds: 60
GracePeriod: 30
image:
pullPolicy: IfNotPresent
service:
type: ClusterIP
#name: "service-1234567890"
annotations: {}
# test1: test2
# test3: test4
ContainerPort:
- name: app
port: 8080
servicePort: 80
envoyPort: 8799
useHTTP2: true
supportStreaming: true
idleTimeout: 1800s
# servicemonitor:
# enabled: true
# path: /abc
# scheme: 'http'
# interval: 30s
# scrapeTimeout: 20s
# metricRelabelings:
# - sourceLabels: [namespace]
# regex: '(.*)'
# replacement: myapp
# targetLabel: target_namespace
resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: 1
memory: 200Mi
requests:
cpu: 0.10
memory: 100Mi


# Optional configs
LivenessProbe:
Path: ""
port: 8080
scheme: ""
httpHeader:
name: ""
value: ""
tcp: false
command: []
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
failureThreshold: 3

ReadinessProbe:
Path: ""
port: 8080
scheme: ""
httpHeader:
name: ""
value: ""
tcp: false
command: []
initialDelaySeconds: 20
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
failureThreshold: 3

ingress:
enabled: false
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: 'false'
nginx.ingress.kubernetes.io/ssl-redirect: 'false'
kubernetes.io/ingress.class: nginx
# nginx.ingress.kubernetes.io/rewrite-target: /$2
# nginx.ingress.kubernetes.io/canary: "true"
# nginx.ingress.kubernetes.io/canary-weight: "10"

hosts:
- host: chart-example1.local
paths:
- /example1
- host: chart-example2.local
paths:
- /example2
- /example2/healthz
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

ingressInternal:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/canary: "true"
# nginx.ingress.kubernetes.io/canary-weight: "10"

hosts:
- host: chart-example1.internal
paths:
- /example1
- host: chart-example2.internal
paths:
- /example2
- /example2/healthz
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

command:
enabled: false
value: []

args:
enabled: false
value:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600

#For adding custom labels to pods
#podLabels:
# customKey: customValue

rawYaml: []

initContainers: []
## Additional init containers to run before the Scheduler pods.
## for example, be used to run a sidecar that chown Logs storage .
#- name: volume-mount-hack
# image: busybox
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
# volumeMounts:
# - mountPath: /usr/local/airflow/logs
# name: logs-data

containers: []
## Additional containers to run along with application pods.
## for example, be used to run a sidecar that chown Logs storage .
#- name: volume-mount-hack
# image: busybox
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
# volumeMounts:
# - mountPath: /usr/local/airflow/logs
# name: logs-data

volumeMounts: []
# - name: log-volume
# mountPath: /var/log

volumes: []
# - name: log-volume
# emptyDir: {}

dbMigrationConfig:
enabled: false

tolerations: []

Spec:
Affinity:
Key:
# Key: kops.k8s.io/instancegroup
Values:

autoscaling:
enabled: false
MinReplicas: 1
MaxReplicas: 2
TargetCPUUtilizationPercentage: 70
TargetMemoryUtilizationPercentage: 80
extraMetrics: []
# - external:
# metricName: pubsub.googleapis.com|subscription|num_undelivered_messages
# metricSelector:
# matchLabels:
# resource.labels.subscription_id: echo-read
# targetAverageValue: "2"
# type: External
#

prometheus:
release: monitoring

server:
deployment:
image_tag: 1-95af053
image: ""

servicemonitor:
additionalLabels: {}

envoyproxy:
image: envoyproxy/envoy:v1.14.1
configMapName: ""
resources:
limits:
cpu: 50m
memory: 50Mi
requests:
cpu: 50m
memory: 50Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
replicaCount: 1
MaxSurge: 1
MaxUnavailable: 0
GracePeriod: 30
pauseForSecondsBeforeSwitchActive: 30
waitForSecondsBeforeScalingDown: 30

Spec:
Affinity:
key: ""
Values: nodes

autoscaling:
enabled: false
MinReplicas: 1
MaxReplicas: 2
TargetCPUUtilizationPercentage: 90
TargetMemoryUtilizationPercentage: 80

secret:
enabled: false
data: {}
# my_own_secret: S3ViZXJuZXRlcyBXb3Jrcw==

EnvVariables: []
# - name: FLASK_ENV
# value: qa

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
limits:
cpu: "0.05"
memory: 50Mi
requests:
cpu: "0.01"
memory: 10Mi


Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
deployment:
strategy:
blueGreen:
autoPromotionSeconds: 30
scaleDownDelaySeconds: 30
previewReplicaCount: 1
autoPromotionEnabled: false
rolling:
maxSurge: "25%"
maxUnavailable: 1
canary:
maxSurge: "25%"
maxUnavailable: 1
steps:
- setWeight: 25
- pause:
duration: 15 # 1 min
- setWeight: 50
- pause:
duration: 15 # 1 min
- setWeight: 75
- pause:
duration: 15 # 1 min
recreate: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
server:
deployment:
image_tag: IMAGE_TAG
image: IMAGE_REPO
enabled: false
dbMigrationConfig:
enabled: false

pauseForSecondsBeforeSwitchActive: 0
waitForSecondsBeforeScalingDown: 0
autoPromotionSeconds: 30

#used for deployment algo selection
orchestrator.deploymant.algo: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ConfigSecrets":{"enabled":true,"secrets":[{"data":{"standard_key":"c3RhbmRhcmQtdmFsdWU="},"external":false,"externalType":"","mountPath":"/test","name":"normal-secret","type":"volume"},{"data":{"secret_key":"U0VDUkVUIERBVEE="},"external":true,"externalType":"AWSSecretsManager","mountPath":"","name":"external-secret-3","type":"environment"}]}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range $.Values.ingress.paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host }}{{ . }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include ".Chart.Name .fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get svc -w {{ include ".Chart.Name .fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include ".Chart.Name .fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include ".Chart.Name .name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
{{- end }}
Loading