Skip to content

Instantly share code, notes, and snippets.

View bborysenko's full-sized avatar

Borys Borysenko bborysenko

View GitHub Profile
@bborysenko
bborysenko / kube-prometheus.yaml
Last active January 3, 2018 11:02
Playing with Prometheus
# Namespace
---
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
# ConfigMap
---
apiVersion: v1
@bborysenko
bborysenko / macOS.sh
Last active December 29, 2017 14:22
Kubernetes Development Environment with Minikube
#!/usr/bin/env bash
# This script is meant for quick & easy install via:
# $ curl -fsSL https://gist.githubusercontent.com/bborysenko/b0c582fcd8258b4c5714f5dec6f51c2c/raw/macOS.sh -o macOS.sh
# $ bash macOS.sh
function install() {
brew install kubernetes-cli
brew cask install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit
@bborysenko
bborysenko / node_exporter_install_el6.sh
Last active November 23, 2017 14:56
Install node_exporter
#!/usr/bin/env bash
# curl -fsSL https://gist.githubusercontent.com/bborysenko/c4c83702ccaae285135c8ed2617203f2/raw/node_exporter_install_el6.sh -o node_exporter_install_el6.sh
# bash node_exporter_install_el6.sh
wget https://github.com/prometheus/node_exporter/releases/download/v0.15.0/node_exporter-0.15.0.linux-amd64.tar.gz
tar -xzvf node_exporter-0.15.0.linux-amd64.tar.gz
mv node_exporter-0.15.0.linux-amd64/node_exporter /usr/bin/node_exporter
rm -rf node_exporter-0.15.0.linux-amd64 node_exporter-0.15.0.linux-amd64.tar.gz
mkdir /var/log/prometheus/ /var/run/prometheus
@bborysenko
bborysenko / docker-volume-dump.sh
Last active January 19, 2025 20:42
Dump and restore docker volumes
#!/usr/bin/env bash
dump_dir=~/docker-volume-dump
if [ ! -d $dump_dir ]; then
mkdir -p $dump_dir
fi
for volume in $(docker volume ls -q); do
dump_file=$dump_dir/$volume.tar.gz
#!/usr/bin/env bash
export AUTO_DEVOPS_VERSION=0.1.0
function build_docker_images() {
echo "Build Docker images"
}
function version() {
echo "${AUTO_DEVOPS_VERSION}"
# This file is a template, and might need editing before it works on your project.
# Auto DevOps
# This CI/CD configuration provides a standard pipeline for
# * building a Docker image (using a buildpack if necessary),
# * storing the image in the container registry,
# * running tests from a buildpack,
# * running code quality analysis,
# * creating a review app for each topic branch,
# * and continuous deployment to production
#
@bborysenko
bborysenko / .gitlab-ci.yml
Created September 19, 2017 16:43 — forked from foklepoint/.gitlab-ci.yml
Build and Push images to GCP Container Registry with Gitlab CI
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
DOCKER_DRIVER: overlay
GCP_PROJECT_ID: CHANGE-TO-GCP-PROJECT-ID
IMAGE_NAME: image_id
services:
@bborysenko
bborysenko / kubernetes-local-env.md
Last active September 5, 2017 11:03
Локальное окружение для работы с Kubernetes

Локальное окружение для работы с Kubernetes

Установить kubectl

$ brew install kubectl
$ brew cask install minikube
@bborysenko
bborysenko / trello-material.css
Last active September 1, 2017 18:20
Stylish - Material Trello
body {
background-color: #f2f2f2;
}
.body-tabbed-page {
background: #f2f2f2;
}
#header, .body-board-view #header, .body-light-board-background #header {
@bborysenko
bborysenko / evernote.css
Created August 31, 2017 21:57
Stylish Evernote Preview
@-moz-document domain("www.evernote.com") {
.wrapper#container {
background-color: #ffffff;
border: none;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin: 0 auto 0;
width: 800px;;
-webkit-box-shadow: none;