Skip to content

Instantly share code, notes, and snippets.

@wkharold
wkharold / flux-dmesg.out
Created April 14, 2022 13:49
flux-sched issue #931 dmesg output
$ flux dmesg
2022-04-14T13:40:22.028442Z broker.debug[0]: insmod connector-local
2022-04-14T13:40:22.028556Z broker.info[0]: start: none->join 0.0248116s
2022-04-14T13:40:22.028602Z broker.info[0]: overlay auth 1 OK
2022-04-14T13:40:22.028867Z broker.info[0]: parent-none: join->init 0.00030235s
2022-04-14T13:40:22.030284Z broker.info[0]: accepting connection from slurm-spack-flux-login0 (rank 1) uuid 03cc7648-59d8-4f1d-82d1-f59e15b2d3ac status partial
2022-04-14T13:40:22.030441Z broker.info[0]: online: (ranks )
2022-04-14T13:40:22.031045Z broker.info[0]: overlay auth 2 OK
2022-04-14T13:40:22.031485Z broker.info[0]: accepting connection from slurm-spack-flux-login0 (rank 2) uuid 2d4b5c7a-641c-4593-8a73-260e59b94875 status full
2022-04-14T13:40:22.033405Z connector
provider "acme" {
server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
resource "tls_private_key" "private_key" {
algorithm = "RSA"
}
resource "acme_registration" "reg" {
account_key_pem = "${tls_private_key.private_key.private_key_pem}"
@wkharold
wkharold / fullserver.py
Last active March 9, 2018 05:13
03092018.catbucket
import base64
import json
import os
import requests
from flask import Flask, request, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
from google.cloud import storage
API_KEY='AIzaSyC7E1Ml0kLAg7A675q9Ib043-iIlyHz3OI'
CAT_BUCKET='19580414-catbucket-2304'
@wkharold
wkharold / istio.rbac.err
Created September 12, 2017 18:53
kubectl apply -f install/kubernetes/istio-rbac-beta.yaml results
Error from server (Forbidden): error when creating "install/kubernetes/istio-rbac-beta.yaml": clusterroles.rbac.authorization.k8s.io "istio-pilot" is forbidden: attempt to grant extra privileges: [PolicyRule{Resources:["istioconfigs"], APIGroups:["istio.io"], Verbs:["*"]} PolicyRule{Resources:["istioconfigs.istio.io"], APIGroups:["istio.io"], Verbs:["*"]} PolicyRule{Resources:["thirdpartyresources"], APIGroups:["extensions"], Verbs:["*"]} PolicyRule{Resources:["thirdpartyresources.extensions"], APIGroups:["extensions"], Verbs:["*"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["*"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["*"]} PolicyRule{Resources:["endpoints"], APIGroups:[""], Verbs:["*"]} PolicyRule{Resources:["pods"], APIGroups:[""], Verbs:["*"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["*"]}] user=&{wkharold@gmail.com [system:authenticated] map[]} ownerrules=[PolicyRule{Resources:["selfsubjectaccessreviews"], APIGroups:["authorization.k8s.io"]
@wkharold
wkharold / vpn-tunnel-template.jinja
Created April 3, 2016 18:43
deployment manager vpn tunnel creation template
resources:
- name: {{ env["name"] }}
type: compute.v1.vpnTunnel
properties:
peerIp: {{ properties["peerip"] }}
region: {{ properties["region"] }}
sharedSecret: {{ properties["secret"] }}
targetVpnGateway: $(ref.{{ properties["target"] }}.selfLink)
- name: {{ env["name"] }}-route-1
type: compute.v1.route
@wkharold
wkharold / vpn-template.jinja
Created April 3, 2016 18:41
deployment manger vpn gateway creation template
resources:
- name: {{ env["name"] }}
type: compute.v1.targetVpnGateway
properties:
network: {{ properties["network"] }}
region: {{ properties["region"] }}
- name: {{ env["name"] }}-rule-esp
type: compute.v1.forwardingRule
properties:
IPAddress: {{ properties["address"] }}
@wkharold
wkharold / network-template.jinja
Created April 3, 2016 18:40
deployment manager network creation template
resources:
- name: {{ env["name"] }}
type: compute.v1.network
properties:
IPv4Range: {{ properties["ip_range"] }}
@wkharold
wkharold / cluster-deployment.yaml
Created April 3, 2016 18:36
deployment manager vpn yaml file
imports:
- path: cluster-deployment.jinja
- path: network-template.jinja
- path: vpn-template.jinja
- path: vpn-tunnel-template.jinja
resources:
- name: cluster-deployment
type: cluster-deployment.jinja
@wkharold
wkharold / cluster-deployment.jinja
Created April 3, 2016 18:32
top level deployment manager vpn template
{% set HD_CLUSTER = "qa" %}
resources:
- name: {{ HD_CLUSTER }}
type: network-template.jinja
properties:
ip_range: 10.xyz.0.40/29
- name: gateway-{{ HD_CLUSTER }}-vpn
type: vpn-template.jinja
properties:
@wkharold
wkharold / pauser.yaml
Created February 29, 2016 23:10
Reproduces Kubernetes 1.1.8 issue creating pods with multiple gitRepo volumes
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: pause
name: pauser
namespace: dev
spec:
replicas: 1
selector: