Skip to content

Commit 0a00d51

Browse files
committed
created new cronJob chart version with support for external secrets managed by ClusterSecretStore
1 parent 94ff8f9 commit 0a00d51

26 files changed

+2827
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"server":{"deployment":{"image_tag":"{{.Tag}}","image":"{{.Name}}"}},"pipelineName": "{{.PipelineName}}","releaseVersion":"{{.ReleaseVersion}}","deploymentType": "{{.DeploymentType}}", "app": "{{.App}}", "env": "{{.Env}}", "appMetrics": {{.AppMetrics}}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: v1
2+
appVersion: "1.0"
3+
description: A Helm chart for Kubernetes
4+
name: cronjob-chart_1-5-0
5+
version: 1.5.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# Mandatory configs
2+
kind: Job
3+
4+
jobConfigs:
5+
backoffLimit: 5
6+
activeDeadlineSeconds: 100
7+
parallelism: 1
8+
completions: 2
9+
suspend: false
10+
# ttlSecondsAfterFinished: 100
11+
12+
cronjobConfigs:
13+
schedule: "* * * * *"
14+
startingDeadlineSeconds: 100
15+
concurrencyPolicy: Allow
16+
suspend: false
17+
successfulJobsHistoryLimit: 3
18+
failedJobsHistoryLimit: 1
19+
restartPolicy: OnFailure
20+
21+
kedaAutoscaling:
22+
envSourceContainerName: ""
23+
minReplicaCount: 1
24+
maxReplicaCount: 2
25+
pollingInterval: 30
26+
successfulJobsHistoryLimit: 5
27+
failedJobsHistoryLimit: 5
28+
rolloutStrategy: default
29+
scalingStrategy:
30+
strategy: "custom"
31+
customScalingQueueLengthDeduction: 1
32+
customScalingRunningJobPercentage: "0.5"
33+
pendingPodConditions:
34+
- "Ready"
35+
- "PodScheduled"
36+
- "AnyOtherCustomPodCondition"
37+
multipleScalersCalculation : "max"
38+
triggers:
39+
- type: rabbitmq
40+
metadata:
41+
queueName: hello
42+
host: RabbitMqHost
43+
queueLength : '5'
44+
authenticationRef: {}
45+
triggerAuthentication:
46+
enabled: false
47+
name: ""
48+
spec: {}
49+
50+
MinReadySeconds: 60
51+
GracePeriod: 30
52+
image:
53+
pullPolicy: IfNotPresent
54+
service:
55+
type: ClusterIP
56+
enabled: false
57+
#name: "service-1234567890"
58+
annotations: {}
59+
# test1: test2
60+
# test3: test4
61+
ContainerPort:
62+
- name: app
63+
port: 8080
64+
servicePort: 80
65+
envoyPort: 8799
66+
useHTTP2: true
67+
supportStreaming: true
68+
idleTimeout: 1800s
69+
# servicemonitor:
70+
# enabled: true
71+
# path: /abc
72+
# scheme: 'http'
73+
# interval: 30s
74+
# scrapeTimeout: 20s
75+
# metricRelabelings:
76+
# - sourceLabels: [namespace]
77+
# regex: '(.*)'
78+
# replacement: myapp
79+
# targetLabel: target_namespace
80+
resources:
81+
# We usually recommend not to specify default resources and to leave this as a conscious
82+
# choice for the user. This also increases chances charts run on environments with little
83+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
84+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
85+
limits:
86+
cpu: 1
87+
memory: 200Mi
88+
requests:
89+
cpu: 0.10
90+
memory: 100Mi
91+
92+
# Optional configs
93+
94+
command:
95+
enabled: false
96+
value: []
97+
98+
args:
99+
enabled: false
100+
value:
101+
- /bin/sh
102+
- -c
103+
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
104+
105+
#For adding custom labels to pods
106+
107+
podLabels: {}
108+
# customKey: customValue
109+
podAnnotations: {}
110+
# customKey: customValue
111+
112+
rawYaml: []
113+
114+
initContainers: []
115+
## Additional init containers to run before the Scheduler pods.
116+
## for example, be used to run a sidecar that chown Logs storage.
117+
#- name: volume-mount-hack
118+
# image: busybox
119+
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
120+
# volumeMounts:
121+
# - mountPath: /usr/local/airflow/logs
122+
# name: logs-data
123+
124+
containers: []
125+
## Additional containers to run along with application pods.
126+
## for example, be used to run a sidecar that chown Logs storage .
127+
#- name: volume-mount-hack
128+
# image: busybox
129+
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
130+
# volumeMounts:
131+
# - mountPath: /usr/local/airflow/logs
132+
# name: logs-data
133+
134+
volumeMounts: []
135+
# - name: log-volume
136+
# mountPath: /var/log
137+
138+
volumes: []
139+
# - name: log-volume
140+
# emptyDir: {}
141+
142+
tolerations: []
143+
144+
Spec:
145+
Affinity:
146+
Key:
147+
# Key: kops.k8s.io/instancegroup
148+
Values:
149+
150+
prometheus:
151+
release: monitoring
152+
153+
server:
154+
deployment:
155+
image_tag: 1-95af053
156+
image: ""
157+
158+
servicemonitor:
159+
additionalLabels: {}
160+
161+
imagePullSecrets: []
162+
# - test1
163+
# - test2
164+
165+
containerSecurityContext:
166+
allowPrivilegeEscalation: false
167+
168+
podSecurityContext: {}
169+
# runAsUser: 1000
170+
# runAsGroup: 3000
171+
# fsGroup: 2000
172+
173+
shareProcessNamespace: false
174+
setHostnameAsFQDN: false
175+
readinessGates: []
176+
ephemeralContainers: []
177+
topologySpreadConstraints: []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
MaxSurge: 1
2+
MaxUnavailable: 0
3+
GracePeriod: 30
4+
pauseForSecondsBeforeSwitchActive: 30
5+
waitForSecondsBeforeScalingDown: 30
6+
7+
Spec:
8+
Affinity:
9+
key: ""
10+
Values: nodes
11+
12+
secret:
13+
enabled: false
14+
data: {}
15+
# my_own_secret: S3ViZXJuZXRlcyBXb3Jrcw==
16+
17+
EnvVariables: []
18+
# - name: FLASK_ENV
19+
# value: qa
20+
21+
resources:
22+
# We usually recommend not to specify default resources and to leave this as a conscious
23+
# choice for the user. This also increases chances charts run on environments with little
24+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
25+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
26+
limits:
27+
cpu: "0.05"
28+
memory: 50Mi
29+
requests:
30+
cpu: "0.01"
31+
memory: 10Mi
32+
33+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
deployment:
2+
strategy:
3+
blueGreen:
4+
autoPromotionSeconds: 30
5+
scaleDownDelaySeconds: 30
6+
previewReplicaCount: 1
7+
autoPromotionEnabled: false
8+
rolling:
9+
maxSurge: "25%"
10+
maxUnavailable: 1
11+
canary:
12+
maxSurge: "25%"
13+
maxUnavailable: 1
14+
steps:
15+
- setWeight: 25
16+
- pause:
17+
duration: 15 # 1 min
18+
- setWeight: 50
19+
- pause:
20+
duration: 15 # 1 min
21+
- setWeight: 75
22+
- pause:
23+
duration: 15 # 1 min
24+
recreate: {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
server:
2+
deployment:
3+
image_tag: IMAGE_TAG
4+
image: IMAGE_REPO
5+
enabled: false
6+
dbMigrationConfig:
7+
enabled: false
8+
9+
pauseForSecondsBeforeSwitchActive: 0
10+
waitForSecondsBeforeScalingDown: 0
11+
autoPromotionSeconds: 30
12+
13+
#used for deployment algo selection
14+
orchestrator.deploymant.algo: 1

0 commit comments

Comments
 (0)