Skip to content

Instantly share code, notes, and snippets.

View gigovich's full-sized avatar

Givi Khojanashvili gigovich

View GitHub Profile
@gigovich
gigovich / server.sh
Created December 11, 2012 07:26 — forked from ibdknox/server.sh
example daemon for lein processes
#!/bin/bash
name=webnoir
pidfile=/var/run/$name.pid
if [ -f "$pidfile" ]; then
pid=`cat $pidfile`
running=`ps p $pid |wc -l`
if [ $running -eq 1 ]; then
pid=
@gigovich
gigovich / main.go
Created January 18, 2017 12:56
Golang - представьте это на Python.
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"os/signal"
0xb96d26ade1450450de24fa2ba4ea436eb13c3287
@gigovich
gigovich / README.md
Last active November 24, 2020 15:07
Setup K8S Cluster

Install K8S cluster

This guide describes step by step instruction how to setup k8s cluster on the single physical server (host machine) with qemu (libvirt) virtual machines and single public IP.

Development node setup

On the development node, you should setup VM manager, SSH with key acccess to host node, and kubectl.

Create base virtual machinge

Login to the host machine through SSH. Let's setup qemu and download Ubuntu server image:

@gigovich
gigovich / README.md
Last active October 27, 2021 02:18

Install Harbor with external components

Agenda

Harbor is modern docker register, and help packages repositore. In this guide we will setup it on the bare metal with nginx reverse proxy, Docker, and docker-compose (your should have installed them on the your host machine).

Obtain Let's encrypt certificates

Let's setup host nginx:

$ cd /etc/nginx/sites-available/
$ cat << EOF >>