1 Star 0 Fork 23

kar98kchen/devops-k8s

forked from zhangyu/devops-k8s 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ftpCron.yaml 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Edgar 提交于 2021-06-07 15:34 . 1
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: cronjob-demo
spec:
schedule: "*/1 * * * *"
suspend: false
startingDeadlineSeconds: 300
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
ttlSecondsAfterFinished: 100
backoffLimit: 2
template:
spec:
restartPolicy: OnFailure
containers:
- name: hello
image: takkatakka/lftp:alpine
securityContext:
runAsUser: 0
args:
- "bin/sh"
- "-c"
- 'lftp dispute-ftp-test:[email protected]:40023 -e "mget /fanyu/20201012/BY2020101206-* && bye" && mv *.tar /tmp/'
volumeMounts:
- mountPath: /tmp
name: ftp-date
- mountPath: /etc/localtime
name: time-shanghai
readOnly: true
volumes:
- name: ftp-date
hostPath:
path: /tmp
type: Directory
- name: time-shanghai
hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kar98kchen/devops-k8s.git
[email protected]:kar98kchen/devops-k8s.git
kar98kchen
devops-k8s
devops-k8s
master

搜索帮助