Skip to content

Instantly share code, notes, and snippets.

🔨
working on Flagger and @fluxcd

Stefan Prodan stefanprodan

🔨
working on Flagger and @fluxcd
Block or report user

Report or block stefanprodan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gke-istio-beta.md

GKE Istio add-on issues

Cluster spec:

gcloud beta container --project "dx-stefan" clusters create "istio-eu" --zone "europe-west3-a" \
--cluster-version "1.11.6-gke.6" --machine-type "n1-standard-2" --image-type "COS" \
--no-enable-basic-auth --disk-type "pd-standard" --disk-size "50" \
--num-nodes "1" --additional-zones "europe-west3-a","europe-west3-b" \
--no-enable-cloud-logging --enable-cloud-monitoring \
View certinfo.yaml
apiVersion: openfaas.com/v1alpha2
kind: Function
metadata:
name: certinfo
spec:
name: certinfo
image: stefanprodan/certinfo:latest
labels:
com.openfaas.scale.min: "2"
com.openfaas.scale.max: "12"
View alert-rules.yaml
apiVersion: alerting.cloud.weave.works/v1
kind: PrometheusRule
metadata:
name: node-rules
spec:
groups:
- name: node-alerts
rules:
- alert: NodeDown
expr: up{job="kubernetes-nodes"} == 0
View caddy-cfg.yaml
kind: ConfigMap
apiVersion: v1
metadata:
name: caddy-config
namespace: openfaas
labels:
app: caddy
data:
Caddyfile: |
sub.mydomain.com {
View keybase.md

Keybase proof

I hereby claim:

  • I am stefanprodan on github.
  • I am stefanprodan (https://keybase.io/stefanprodan) on keybase.
  • I have a public key ASBAfWbNJNEZd2c_Ysg8rLfwbLtPMHEgDj67cWvUIshY-Ao

To claim this, I am signing this object:

@stefanprodan
stefanprodan / sensu-check-netstat.rb
Created Apr 29, 2017
Sensu netstat check with retry/wait capabilities
View sensu-check-netstat.rb
#! /usr/bin/env ruby
#
# check-netstat
#
# DESCRIPTION:
# Takes an IP and checks for established connections
#
# OUTPUT:
# plain text
#
@stefanprodan
stefanprodan / go-ssh-encrypted-pem.go
Created Apr 10, 2017
Using golang ssh client with an encrypted private key
View go-ssh-encrypted-pem.go
package main
import (
"crypto/x509"
"encoding/pem"
"errors"
"fmt"
"golang.org/x/crypto/ssh"
"io/ioutil"
"net"
@stefanprodan
stefanprodan / get_incidents_csv.py
Created Feb 28, 2017 — forked from lfepp/get_incidents_csv.py
Sample script to output all PagerDuty incidents for a given time period to a CSV file (defaults to previous 24 hours)
View get_incidents_csv.py
#!/usr/bin/env python
#
# Copyright (c) 2016, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
View install-docker-ubuntu-16.04.sh
set -e
sudo true
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" > /etc/apt/sources.list.d/docker.list'
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-cache policy docker-engine
View win10-bash-go-install.sh
#!/bin/bash
set -e
GVERSION="1.7"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"
You can’t perform that action at this time.