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
| $ wget https://github.com/grafana/loki/releases/download/v2.4.1/promtail-linux-amd64.zip | |
| $ unzip promtail-linux-amd64.zip | |
| $ mv promtail-linux-amd64 /usr/local/bin/ | |
| $ ln -s /usr/local/bin/promtail-linux-amd64 /usr/local/bin/promtail | |
| $ useradd --system promtail | |
| $ gpasswd -a promtail adm | |
| $ nano /etc/systemd/system/promtail.service | |
| $ systemctl daemon-reload | |
| $ systemctl start promtail.service |
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
| # update and install ntp | |
| yum update -y | |
| yum install ntp -y | |
| systemctl enable ntpd --now | |
| # Install crictl, for Cri-o, but did not work with k8s 1.10 as of yet. | |
| curl -L -O https://github.com/kubernetes-incubator/cri-tools/releases/download/v1.0.0-beta.0/crictl-v1.0.0-beta.0-linux-amd64.tar.gz | |
| tar xvf crictl-v1.0.0-beta.0-linux-amd64.tar.gz | |
| # mv crictl /usr/local/bin/crictl |
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 | |
| # create custom bootable iso for CentOS 7 with kickstart | |
| if [ $# -lt 2 ] | |
| then | |
| echo "Usage1: $0 path2iso path2kickstart" | |
| exit 1 | |
| else | |
| if [ ! -f $1 ] | |
| then |