Skip to content

Instantly share code, notes, and snippets.

View olgac's full-sized avatar
🛡️

Ahmet Vehbi Olgaç olgac

🛡️
View GitHub Profile
@olgac
olgac / .gitlab-ci.yml
Created January 9, 2020 16:35
GitLab .gitlab-ci.yml
stages:
- Setup
- Deploy
Permissions:
stage: Setup
image: alpine:3.11.2
tags:
- gitlab
script:
#!/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
@olgac
olgac / docker-compose.yml
Created January 8, 2020 19:25
GitLab docker-compose.yml
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'
#!/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;

Monitoring Kubernetes with Prometheus and Grafana via Helm

image

What Problem are we solving

Monitoring on Kubernetes.

tl;dr