Skip to content

Instantly share code, notes, and snippets.

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

Victor Yang pydevops

🏠
Working from home
View GitHub Profile
@jbeda
jbeda / notes.md
Created February 23, 2018 22:43
Notes from TGIK 027
  1. Show kubectl proxy

Things are now locked down by default. Try to upload kubeconfig. Talk certs vs. tokens. Skip login... nothing works.

  1. Let's get UI working!

Option 1: Give UI SA with admin. Don't do this!

@brycemcd
brycemcd / ansible_cheatsheet.md
Last active September 27, 2018 02:43
A smattering of frequently used commands I use. This will help prevent excessive load on Google's systems.

Ansible Cheatsheet

A smattering of frequently used commands I use. This will help prevent excessive load on Google's systems.

NOTE: most examples are copied and pasted from the documentation. Attribution belongs to the contributors of the documentation!

Template

http://docs.ansible.com/ansible/latest/template_module.html

@PatrickLang
PatrickLang / README.md
Last active December 28, 2018 17:45
Playing with Virtual Kubelet and AKS

This is my attempt to capture steps needed to deploy:

  1. Azure Container Service (AKS) - currently only supporting Linux
  2. Virtual-Kubelet - to create a Windows "node"
  3. Azure Open Service Broker - make it easy to create Azure SQL databases and other services
  4. Helm to deploy a Windows app with web app in container, backend in Azure SQL

Prerequisites

@jaytaylor
jaytaylor / log4j2.properties
Created January 26, 2018 23:36
Elasticsearch log4j2.properties file for hybrid console + disk-based logging, with rotation and expiration.
status = error
dest = err
name = PopertiesConfig
property.logDir = /var/log/elasticsearch
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
@jbeda
jbeda / registries.md
Created January 26, 2018 22:54
TGIK8s 23 notes
  • Terminology
    • Registry -- the API/service you talk to to push/pull images
    • Repository -- a set of relate container images that share the same name but different tags.
    • Container Image -- a single image that can be used to launch a container. Has multiple "names"
    • Container Image Layer -- implementation detail used to speed up image push/pull/launch
  • Docker Hub
    • One personal registry per user. There are "organizations" that are shared registries. Similar to github model.
  • ACR
    • Registry is called foo.azurecr.io
  • 2 authentication mechanisms:
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: prometheus
rules:
@koobitor
koobitor / gcloud.md
Last active December 18, 2018 20:32
gcloud sdk cmd

Cloud SDK

gcloud init
gcloud auth list
gcloud config list
gcloud info
gcloud help
gcloud help compute instances create
@mrmichalis
mrmichalis / OpenSSL Cheatsheet.md
Last active August 20, 2021 13:55
OpenSSL Cheatsheet

OpenSSL Cheatsheet

Generating Certificates

Generate RSA Private Key + CSR
openssl req -out newkey.csr -new -newkey rsa:[bits] -nodes -keyout priv.key

Generate Self Signed Certificate + Priv Key
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:[bits] -keyout priv.key -out cert.crt

@boris
boris / vault-meetup.md
Last active November 21, 2018 17:37
Demo - Vault Meetup SCL

Vault init & unseal:

export VAULT_ADDR="http://127.0.0.1:8200"
vault status
vault init
vault init -key-shares=10 -key-threshold=2 > vault-storage.txt
vault unseal
vault auth <root-key>

read/write with vault

@polleyg
polleyg / common_sinks_and_metrics.md
Last active February 2, 2021 01:29
Common sinks and metrics we use for GCP
#!/usr/bin/env bash
PROJECT="<project-id>"

### Sinks ###

#Base sink for all logs to BigQuery
gcloud logging sinks create --quiet --project $project ${project}_bigquery_sink bigquery.googleapis.com/projects/billing-exports-184901/datasets/CLOUD_LOGGING_EXPORTS --log-filter "resource.type:*"

#### Metrics ####