Monitoring on Kubernetes.
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
stages: | |
- Setup | |
- Deploy | |
Permissions: | |
stage: Setup | |
image: alpine:3.11.2 | |
tags: | |
- gitlab | |
script: |
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 | |
function log() { | |
echo -e "\n$(date '+%Y-%m-%d %H:%M:%S') $1" | |
} | |
function check() { | |
if [ ! -f /usr/local/bin/gitlab-runner ]; then | |
log "gitlab-runner not found!" | |
sudo wget -q -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 |
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
version: '3.7' | |
services: | |
gitlab: | |
image: gitlab/gitlab-ee:12.6.2-ee.0 | |
hostname: gitlab.example.com | |
environment: | |
GITLAB_ROOT_PASSWORD: 'git1ab-p@ssw0rd :)' | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab.example.com' |
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 | |
FILE="/tmp/telnet-scan-$(date '+%Y%m%d%H%M%S')"; | |
IPS="10.10.10.10 10.10.10.11 10.10.10.12"; | |
PORTS="8091 8092 8093 11207 11210 11211 18091 18092"; | |
for ip in $IPS; | |
do | |
for port in $PORTS; |