Skip to content

Instantly share code, notes, and snippets.

View dirien's full-sized avatar
🧿
YAML Engineer

Engin Diri dirien

🧿
YAML Engineer
View GitHub Profile
@dirien
dirien / pulumi_civo.md
Created July 20, 2021 10:22
Creating a cluster: the path to success (Pulumi edition)

Creating a Civo Kubernetes cluster through Pulumi

The next option to provision your Civo Kubernetes Cluster is to use Pulumi. Pulumi is a modern infrastructure as code platform. It leverages existing programming languages ecosystem to interact with cloud resources through the Pulumi SDK.

In this tutorial we are going to show you how you can create a Civo Kubernetes Cluster with Pulumi. For the programming languages we choose Go.

If you would like to access further information on using the Civo Pulumi provider, please refer to the full guide

CIVO

Plastic

CIVO

[![CIVO](https://img.shields.io/badge/-CIVO-239DFF?style=plastic&logoColor=white&logo=civo)](https://civo.com/)

Flat

This is real chaos engineering!

While browsing through Twitter or Youtube, I see all the cool chaos engineering frameworks like Chaos Mesh or LitmusChaos.

Without a doubt, these frameworks are amazing, and I would suggest to everybody to go and try them out. Saiyam Pathak has made some great videos about Chaos Mesh and Litmus and there will be a bigger meetup about Litmus coming.

@dirien
dirien / gist:9d8fd485af8177588342cbbe7d8b0742
Created August 23, 2021 14:59
inlets-grafana-agent.yaml
server:
log_level: info
http_listen_port: 12345
prometheus:
wal_directory: /tmp/wal
global:
scrape_interval: 15s
configs:
- job_name: 'http-tunnel'
static_configs:
@dirien
dirien / teleport.md
Last active October 9, 2021 08:33
Teleport: PoC

Install teleport on Civo Instance

civo sshkey create key -k key.pub
Created an SSH key called key with ID 368a2903-92af-435b-aca4-6f361f409f37

civo instance create -i g3.medium -k 368a2903-92af-435b-aca4-6f361f409f37 -t 921fcb64-8abf-4a51-8823-027d9d75c1d4 -u root -w 
The instance late-summit has been created

ssh -i key root@<ip>
@dirien
dirien / goreleaser-cloud-native.md
Last active February 5, 2022 22:16
goreleaser-cloud-native

The main.tf

terraform {
  required_providers {
    google  = {
      source  = "hashicorp/google"
      version = "4.9.0"
    }
    azurerm = {
@dirien
dirien / goreleaser.md
Created February 5, 2022 19:07
goreleaser-cloud-native
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
  hooks:
    - go mod tidy
builds:
  - env:
      - CGO_ENABLED=0
 goos:
@dirien
dirien / latest.md
Created February 12, 2022 11:47
download latest artifact from GitHub release
curl -s https://api.github.com/repos/<user>/<repo>/releases/latest | grep -E 'browser_download_url' | grep linux_amd64 | grep -Eo 'https://[^\"]*' | xargs wget -O - | tar -xz
@dirien
dirien / main.md
Last active February 20, 2022 17:18
Azure DevOps and GoReleaser - Part 1

The example code, is a very simple go app. It just prints some variables.

package main

import (
	"fmt"
)

var (
@dirien
dirien / .goreleaser.yaml
Created February 20, 2022 17:19
Azure DevOps and GoReleaser - II
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goarch: