This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: ${jobName} | |
labels: | |
app: data-job | |
spec: | |
schedule: "${cronTime}" | |
concurrencyPolicy: Forbid | |
successfulJobsHistoryLimit: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: ${jobName} | |
labels: | |
app: data-job | |
spec: | |
schedule: "${cronTime}" | |
concurrencyPolicy: Forbid | |
successfulJobsHistoryLimit: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* The MIT License | |
* | |
* Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Jenkins input curl process | |
# inputID is set input id: "" | |
curl -X POST https://admin:token@jenkins_server_url/job/projectname/job/branch/BUILD_NUMBER/input/inputID/proceedEmpty | |
curl -X POST https://admin:token@jenkins_server_url/job/projectname/job/branch/BUILD_NUMBER/input/inputID/abort |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Install Docker REF: https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
VPN HOST: 35.222.170.153 | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REF: https://gist.github.com/phips/11233502 | |
- name: Ensure hostname set from inventory file | |
tags: etchostsupdate | |
hostname: name={{ inventory_hostname }} | |
when: not inventory_hostname|match('(\d{1,3}\.){3}\d{1,3}') | |
- name: Update the /etc/hosts file with node name | |
tags: etchostsupdate | |
become: yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 问题 | |
在尝试安装完cilium之后,发现运行都crash,查看原因,是内核版本不匹配,需要4.xx,实际我的主机是3.10,所以先准备移除cilium,等待升完内核之后,再来安装。 | |
简单使用 | |
```bash | |
kubectl delete -f https://raw.githubusercontent.com/cilium/cilium/v1.8/install/kubernetes/quick-install.yaml | |
``` | |
问题就这样出现了。表面上看似是从集群删除了。但是在其他容器重启或者更新发布之后,发现无法启动了,容器状态一直在containercreating状态。比如 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install these packages (use your favorite AUR tool here) | |
yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables | |
# Get libvirt going | |
sudo systemctl enable libvirtd.service | |
sudo usermod -a -G libvirt $(whoami) | |
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
sudo virsh net-autostart default |
OlderNewer