Skip to content

Instantly share code, notes, and snippets.

View strigazi's full-sized avatar

Spyros Trigazis strigazi

  • CERN
  • Geneva, Switzerland
View GitHub Profile
@strigazi
strigazi / local.conf
Created February 9, 2022 09:55
devstack local.conf
[[local|localrc]]
IP_VERSION=4
SERVICE_IP_VERSION=4
PUBLIC_INTERFACE=em1
USE_PYTHON3="True"
VERBOSE="True"
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
@strigazi
strigazi / containerd-stargz-grpc-001.txt
Created October 2, 2020 10:03
containerd-stargz-grpc-001.txt
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc027f10330 stack=[0xc027f10000, 0xc047f10000]
fatal error: stack overflow
runtime stack:
runtime.throw(0x17d9d83, 0xe)
/usr/local/go/src/runtime/panic.go:1116 +0x72
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1060 +0x78d
runtime.morestack()
@strigazi
strigazi / values-nginx-ingress.yaml
Created June 18, 2020 17:07
Values file for issue "SSL passthrough does not produce access log"
controller:
affinity: {}
autoscaling:
enabled: false
config:
log-format-stream: '"$remote_addr [$time_local] $protocol $status $bytes_sent $bytes_received $session_time"'
#use-proxy-protocol: "true"
#use-forwarded-headers: "true"
#compute-full-forwarded-for: "true"
daemonset:
@strigazi
strigazi / nginx-ssl-passthrough-no-access-log.yaml
Created June 18, 2020 17:03
For issue in nginx ingress "SSL passthrough does not produce access log"
#CERTS_DIR="./certs"
#mkdir -p "${CERTS_DIR}"
#rm -rf ${CERTS_DIR}/*
## https port ssl passthrough
#suffix="https-p-sp"
#
## Private CA key
#openssl genrsa -out "${CERTS_DIR}/ca.key.pem" 4096
#
## CA public cert
@strigazi
strigazi / NoVNC_Paste.js
Created June 15, 2020 13:37 — forked from byjg/NoVNC_Paste.js
How to Paste code to NoVNC.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
window.sendString = function (str) {
f(str.split(""));
function f(t) {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = character.match(/[A-Z!@#$%^&*()_+{}:\"<>?~|]/);
#!/bin/bash
set -x
set -e
sudo apt update
#sudo apt upgrade -y
sudo apt install -y vim git bash-completion
#git clone https://github.com/kubernetes/kubernetes
#sudo apt-get remove docker docker-engine docker.io containerd runc
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: debug-app
namespace: kube-system
labels:
k8s-app: debug-app
spec:
selector:
# To be used with
# https://raw.githubusercontent.com/dmwm/CMSKubernetes/3c153baebfa10f790569dd1347048e2db1cfca2a/kubernetes/cmsweb/storages/cephfs-storage-couchdb.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: couchdb
spec:
selector:
{
"dashboard":
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "Prometheus data source",
"type": "datasource",
"pluginId": "prometheus",
version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = "/opt/containerd/plugins"
disabled_plugins = []
required_plugins = []
oom_score = 0
imports = ["/etc/containerd/config.toml"]
[grpc]