Skip to content

Instantly share code, notes, and snippets.

View zelfick's full-sized avatar
🏠
Working from home

zelfick zelfick

🏠
Working from home
  • Colombia
  • 12:00 (UTC -05:00)
View GitHub Profile
@zelfick
zelfick / jenkins.md
Last active January 18, 2021 15:28 — forked from nelsonyaccuzzi/jenkins.md
Practica de Jenkins

Práctica Jenkins

  1. Desplegar Jenkins en K8s
  2. Conectar Jenkins con K8s
  3. Instalar los plugins de docker y K8s
  4. Crear un Pod Template con el container Docker
  5. Crear un Pipeline (a partir de un Jenkinsfile) que compile el dockerfile del siguiente proyecto https://github.com/nelsonyaccuzzi/web-go-public
  6. Crear un container que tenga solo el binario de kubectl, pushearlo a dockerhub
  7. Agregar el container al pod template que anteriormente creamos
@zelfick
zelfick / canary.yml
Created May 13, 2020 17:06 — forked from jakubhajek/canary.yml
The canary deployment approach using Traefik - the definition of weighted service
http:
services:
canary:
weighted:
services:
# Load balancing between Traefik services
- name: app1_svc@docker
weight: 1
- name: app2_svc@docker
weight: 5
@zelfick
zelfick / stack-canary.yml
Created May 13, 2020 17:06 — forked from jakubhajek/stack-canary.yml
The example of canary deployment using Traefik 2.x
# docker stack deploy -c stack-canary.yml canary --with-registry-auth --prune
version: "3.7"
services:
app1:
image: jakubhajek/app1-node:v1
healthcheck:
test: wget --quiet --tries=1 --spider http://localhost:3000/ || exit 1
interval: 3s
timeout: 1s
@zelfick
zelfick / traefik.yml
Created May 13, 2020 17:05 — forked from jakubhajek/traefik.yml
The example of Traefik 2.x configuration that is set on startup.
log:
level: info
format: json
accessLog:
format: json
bufferingSize: 5
providers:
docker:
# Maintainer: Jakub Hajek, jakub.hajek@cometari.com
#
# docker stack deploy -c stack-elastic.yml elastic
#
# The stack creates Elasticsearch cluster consiting of
# - 3 dedicated master nodes in order to keep quorum
# - 4 dedicated data nodes to manage CRUD,
#
# Docker compose file to easily deploy Elasticsearch cluster 7.x on Docker Swarm cluster.
@zelfick
zelfick / docker-on-wsl-windows-10-home-docker-toolbox.md
Created September 13, 2019 18:52 — forked from strarsis/docker-on-wsl-windows-10-home-docker-toolbox.md
Notes about Docker on WSL (Windows 10 Home / Docker Toolbox) (Virtualbox instead Hyper-V)

Docker on WSL (Windows 10 Home / Docker Toolbox) (Virtualbox instead Hyper-V)

Docker on WSL communicates with Docker on Windows from Docker Toolbox.

Install VirtualBox and Docker Toolbox on Windows.

Docker on Windows uses VM for Linux based docker containers.

@zelfick
zelfick / Jenkinsfile
Created August 27, 2019 22:33 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"