Skip to content

Commit 9f64418

Browse files
Neha SharmaNeha Sharma
authored andcommitted
add support of container name in cronjob
1 parent bc8cecc commit 9f64418

26 files changed

Lines changed: 3089 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
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}}}
Lines changed: 5 additions & 0 deletions
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-6-0
5+
version: 1.6.0
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
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+
cronjobConfigs:
12+
schedule: "* * * * *"
13+
startingDeadlineSeconds: 100
14+
concurrencyPolicy: Allow
15+
suspend: false
16+
successfulJobsHistoryLimit: 3
17+
failedJobsHistoryLimit: 1
18+
timeZone: "UTC"
19+
cronJobAnnotations: {}
20+
cronJobLabels: {}
21+
LivenessProbe:
22+
Path: ""
23+
command: []
24+
failureThreshold: 3
25+
httpHeaders: []
26+
initialDelaySeconds: 20
27+
periodSeconds: 10
28+
port: 8080
29+
scheme: ""
30+
successThreshold: 1
31+
tcp: false
32+
timeoutSeconds: 5
33+
ReadinessProbe:
34+
Path: ""
35+
command: []
36+
failureThreshold: 3
37+
httpHeaders: []
38+
initialDelaySeconds: 20
39+
periodSeconds: 10
40+
port: 8080
41+
scheme: ""
42+
successThreshold: 1
43+
tcp: false
44+
timeoutSeconds: 5
45+
restartPolicy: OnFailure
46+
kedaAutoscaling:
47+
envSourceContainerName: ""
48+
minReplicaCount: 1
49+
maxReplicaCount: 2
50+
pollingInterval: 30
51+
successfulJobsHistoryLimit: 5
52+
failedJobsHistoryLimit: 5
53+
rolloutStrategy: default
54+
scalingStrategy:
55+
strategy: "custom"
56+
customScalingQueueLengthDeduction: 1
57+
customScalingRunningJobPercentage: "0.5"
58+
pendingPodConditions:
59+
- "Ready"
60+
- "PodScheduled"
61+
- "AnyOtherCustomPodCondition"
62+
multipleScalersCalculation : "max"
63+
triggers:
64+
- type: rabbitmq
65+
metadata:
66+
queueName: hello
67+
host: RabbitMqHost
68+
queueLength : '5'
69+
authenticationRef: {}
70+
triggerAuthentication:
71+
enabled: false
72+
name: ""
73+
spec: {}
74+
75+
MinReadySeconds: 60
76+
GracePeriod: 30
77+
image:
78+
pullPolicy: IfNotPresent
79+
service:
80+
type: ClusterIP
81+
enabled: false
82+
#name: "service-1234567890"
83+
annotations: {}
84+
# test1: test2
85+
# test3: test4
86+
ContainerPort:
87+
- name: app
88+
port: 8080
89+
servicePort: 80
90+
envoyPort: 8799
91+
useHTTP2: true
92+
supportStreaming: true
93+
idleTimeout: 1800s
94+
# servicemonitor:
95+
# enabled: true
96+
# path: /abc
97+
# scheme: 'http'
98+
# interval: 30s
99+
# scrapeTimeout: 20s
100+
# metricRelabelings:
101+
# - sourceLabels: [namespace]
102+
# regex: '(.*)'
103+
# replacement: myapp
104+
# targetLabel: target_namespace
105+
resources:
106+
# We usually recommend not to specify default resources and to leave this as a conscious
107+
# choice for the user. This also increases chances charts run on environments with little
108+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
109+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
110+
limits:
111+
cpu: 1
112+
memory: 200Mi
113+
requests:
114+
cpu: 0.10
115+
memory: 100Mi
116+
117+
# Optional configs
118+
119+
command:
120+
enabled: false
121+
value: []
122+
123+
args:
124+
enabled: false
125+
value:
126+
- /bin/sh
127+
- -c
128+
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
129+
130+
#For adding custom labels to pods
131+
132+
podLabels: {}
133+
# customKey: customValue
134+
podAnnotations: {}
135+
# customKey: customValue
136+
137+
rawYaml: []
138+
139+
initContainers: []
140+
## Additional init containers to run before the Scheduler pods.
141+
## for example, be used to run a sidecar that chown Logs storage.
142+
#- name: volume-mount-hack
143+
# image: busybox
144+
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
145+
# volumeMounts:
146+
# - mountPath: /usr/local/airflow/logs
147+
# name: logs-data
148+
149+
containers: []
150+
## Additional containers to run along with application pods.
151+
## for example, be used to run a sidecar that chown Logs storage .
152+
#- name: volume-mount-hack
153+
# image: busybox
154+
# command: ["sh", "-c", "chown -R 1000:1000 logs"]
155+
# volumeMounts:
156+
# - mountPath: /usr/local/airflow/logs
157+
# name: logs-data
158+
159+
volumeMounts: []
160+
# - name: log-volume
161+
# mountPath: /var/log
162+
163+
volumes: []
164+
# - name: log-volume
165+
# emptyDir: {}
166+
167+
tolerations: []
168+
169+
Spec:
170+
Affinity:
171+
Key:
172+
# Key: kops.k8s.io/instancegroup
173+
Values:
174+
175+
prometheus:
176+
release: monitoring
177+
178+
server:
179+
deployment:
180+
image_tag: 1-95af053
181+
image: ""
182+
183+
servicemonitor:
184+
additionalLabels: {}
185+
186+
imagePullSecrets: []
187+
# - test1
188+
# - test2
189+
190+
containerSecurityContext:
191+
allowPrivilegeEscalation: false
192+
193+
podSecurityContext: {}
194+
# runAsUser: 1000
195+
# runAsGroup: 3000
196+
# fsGroup: 2000
197+
198+
shareProcessNamespace: false
199+
setHostnameAsFQDN: false
200+
readinessGates: []
201+
ephemeralContainers: []
202+
topologySpreadConstraints: []
Lines changed: 33 additions & 0 deletions
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+
Lines changed: 24 additions & 0 deletions
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: {}
Lines changed: 14 additions & 0 deletions
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)