Skip to content

Instantly share code, notes, and snippets.

@rjosephwright
rjosephwright / helm.tf
Created January 10, 2023 16:06
Terraform wrapper for Helm chart with additional resources
variable "helm_values" {
type = any
default = {
abc = "xyz"
}
}
variable "namespace" {
type = string
}
I0814 20:16:00.003755 1 version.go:21] Running /usr/local/bin/kube-router version v1.3.1, built on 2021-08-13T15:31:53+0000, go1.16.7
I0814 20:16:00.116756 1 network_routes_controller.go:1260] Could not find annotation `kube-router.io/bgp-local-addresses` on node object so BGP will listen on node IP: 172.31.93.82 address.
I0814 20:16:00.193518 1 network_policy_controller.go:148] Starting network policy controller
F0814 20:16:00.212008 1 network_policy_controller.go:351] Failed to run iptables command to create KUBE-ROUTER-INPUT chain due to running [/sbin/iptables -t filter -N KUBE-ROUTER-INPUT --wait]: exit status 4: iptables v1.8.7 (nf_tables): CHAIN_USER_ADD failed (File exists): chain KUBE-ROUTER-INPUT
goroutine 173 [running]:
k8s.io/klog/v2.stacks(0xc000130001, 0xc000980000, 0x132, 0x2b0)
/go/pkg/mod/k8s.io/klog/[email protected]/klog.go:1026 +0xb9
k8s.io/klog/v2.(*loggingT).output(0x31e8c60, 0xc000000003, 0x0, 0x0, 0xc000553810, 0x0, 0x28d23da, 0x1c, 0x15f, 0x0)
/go/pkg/mod/k8s.io/kl
@rjosephwright
rjosephwright / bumpme
Last active September 16, 2017 17:42
Sat Sep 16 17:42:18 UTC 2018
@rjosephwright
rjosephwright / packer trace
Created June 29, 2015 17:43
packer trace
09:59:15.840582 IP local_machine.56761 > remote_machine.ssh: Flags [S], seq 1374479549, win 29200, options [mss 1460,sackOK,TS val 62805505 ecr 0,nop,wscale 7], length 0
09:59:16.839041 IP local_machine.56761 > remote_machine.ssh: Flags [S], seq 1374479549, win 29200, options [mss 1460,sackOK,TS val 62805755 ecr 0,nop,wscale 7], length 0
09:59:18.843046 IP local_machine.56761 > remote_machine.ssh: Flags [S], seq 1374479549, win 29200, options [mss 1460,sackOK,TS val 62806256 ecr 0,nop,wscale 7], length 0
09:59:22.851051 IP local_machine.56761 > remote_machine.ssh: Flags [S], seq 1374479549, win 29200, options [mss 1460,sackOK,TS val 62807258 ecr 0,nop,wscale 7], length 0
09:59:36.036973 IP local_machine.56773 > remote_machine.ssh: Flags [S], seq 3128052945, win 29200, options [mss 1460,sackOK,TS val 62810554 ecr 0,nop,wscale 7], length 0
09:59:37.035027 IP local_machine.56773 > remote_machine.ssh: Flags [S], seq 3128052945, win 29200, options [mss 1460,sackOK,TS val 62810804 ecr 0,nop,wscale 7], length 0
09:5
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"source_ami": "ami-xxxxxxxx"
},
"builders": [{
"type": "amazon-ebs",
"region": "us-west-2",
"source_ami": "{{user `source_ami`}}",
2015/06/26 13:49:26 [INFO] Packer version: 0.8.0 88e689faa22605759ee91c22bad9a5f463fcf78a+CHANGES
2015/06/26 13:49:26 Packer Target OS/Arch: linux amd64
2015/06/26 13:49:26 Built with Go Version: go1.4.2
2015/06/26 13:49:26 [DEBUG] Discovered plugin: amazon-chroot = /home/joswright/.local/packer-0.8.0/bin/packer-builder-amazon-chroot
2015/06/26 13:49:26 [DEBUG] Discovered plugin: amazon-ebs = /home/joswright/.local/packer-0.8.0/bin/packer-builder-amazon-ebs
2015/06/26 13:49:26 [DEBUG] Discovered plugin: amazon-instance = /home/joswright/.local/packer-0.8.0/bin/packer-builder-amazon-instance
2015/06/26 13:49:26 [DEBUG] Discovered plugin: digitalocean = /home/joswright/.local/packer-0.8.0/bin/packer-builder-digitalocean
2015/06/26 13:49:26 [DEBUG] Discovered plugin: docker = /home/joswright/.local/packer-0.8.0/bin/packer-builder-docker
2015/06/26 13:49:26 [DEBUG] Discovered plugin: file = /home/joswright/.local/packer-0.8.0/bin/packer-builder-file
2015/06/26 13:49:26 [DEBUG] Discovered plugin: googlecompute =
require 'json'
require 'net/http'
index_pattern = {
'index-pattern' => {
'properties' => {
'title' => {
'type' => 'string'
},
'timeFieldName' => {
path:
data: /var/lib/elasticsearch/data
work: /var/lib/elasticsearch/work
logs: /var/log/elasticsearch
discovery:
zen:
ping:
multicast:
enabled: false
tribe:
--- WEB-MODE DEBUG BEG ---
versions: emacs(24.3) web-mode("9.0.48")
vars: engine(nil) content-type("") file("*scratch*")
system: window(ns) config("x86_64-apple-darwin")
colors: fg(nil) bg(nil)
modes: whitespace-mode(nil) global-whitespace-mode(nil) rainbow-mode(nil) idle-highlight-mode(nil) fic-mode(nil)
(transient-mark-mode line-number-mode column-number-mode auto-compression-mode auto-encryption-mode auto-composition-mode blink-cursor-mode font-lock-mode global-font-lock-mode file-name-shadow-mode mouse-wheel-mode tooltip-mode show-paren-mode auto-complete-mode global-auto-complete-mode global-rbenv-mode global-flycheck-mode)
--- WEB-MODE DEBUG END ---
File mode specification error: (wrong-type-argument number-or-marker-p nil)
=: Wrong type argument: number-or-marker-p, nil
from functools import wraps
class Function(Task):
@staticmethod
def executor(qname):
queue = get_queue(qname)
while True:
task = queue.get()
func, args, kwargs = task.funcspec
task.put(func(*args, **kwargs))