Skip to content

Instantly share code, notes, and snippets.

View aliasmee's full-sized avatar
🎯
Focusing

飞走不可 aliasmee

🎯
Focusing
View GitHub Profile
@aliasmee
aliasmee / cronJobTemplate.yaml
Created August 23, 2018 06:36
Extract job information from k8s_jobs.txt. Generate kubernetes cronjob yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ${jobName}
labels:
app: data-job
spec:
schedule: "${cronTime}"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
@aliasmee
aliasmee / cronJobTemplate.yaml
Created August 23, 2018 06:28
using groovy script generate multi cronjob yaml from a template
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ${jobName}
labels:
app: data-job
spec:
schedule: "${cronTime}"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
FROM buildpack-deps:stretch
# skip installing gem documentation
RUN mkdir -p /usr/local/etc \
&& { \
echo 'install: --no-document'; \
echo 'update: --no-document'; \
} >> /usr/local/etc/gemrc
ENV RUBY_MAJOR 2.5