Skip to content

Instantly share code, notes, and snippets.

View bemeyert's full-sized avatar

Markus "Shorty" Uckelmann bemeyert

  • Next Kraftwerke GmbH
  • Kölle am Rhing
View GitHub Profile
@bemeyert
bemeyert / sonobouyoutput.txt
Created December 1, 2021 10:09
Sonobuoy 0.55.1 with cluster-inventory 0.0.2
# Command and output
sonobuoy run --sonobuoy-image=docker-registry.domain.de/sonobuoy/sonobuoy:v0.55.1 --wait=5 --plugin-image=cluster-inventory:docker-registry.domain.de/sonobuoy/cluster-inventory:v0.0.2@sha256:d7e75bedf1a28e01a852ee5f3f458a0cfd5b01aec905e8168ef299a230b6fef0 --plugin=https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/main/cluster-inventory/cluster-inventory.yaml
INFO[0000] create request issued name=sonobuoy namespace= resource=namespaces
INFO[0000] create request issued name=sonobuoy-serviceaccount namespace=sonobuoy resource=serviceaccounts
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterrolebindings
INFO[0000] create request issued name=sonobuoy-serviceaccount-sonobuoy namespace= resource=clusterroles
INFO[0000] create request issued name=sonobuoy-config-cm namespace=sonobuoy resource=configmaps
INFO[0000] cr
$VAR1 = {
'redirects' => [
{
'request' => {
'path' => '/Abgebildete',
'host' => ''
},
'ID' => '12345',
'status' => 301,
'deliver' => '/'
@bemeyert
bemeyert / Jenkins error
Created August 9, 2018 15:20
Scripted pipeline aborts for unknown reasons
hudson.remoting.ProxyException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{clean-composer=null, clean-qucli=null}' with class 'java.util.HashMap' to class 'org.jenkinsci.plugins.pipeline.modeldefinition.model.Root' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(java.util.HashMap)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:403)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter$castToType.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArra
@bemeyert
bemeyert / Jenkins error message
Last active August 3, 2018 14:22
Jenkins scripted pipeline loop error
hudson.remoting.ProxyException: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{build-composer=null, build-qucli=null}' with class 'java.util.HashMap' to class 'org.jenkinsci.plugins.pipeline.modeldefinition.model.Root' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.jenkinsci.plugins.pipeline.modeldefinition.model.Root(java.util.HashMap)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:403)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter$castToType.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArra
@bemeyert
bemeyert / ES_index.json
Last active January 24, 2017 12:48
Problem with Grafana and annotations via Elasticsearch
{
"event" : {
"aliases" : { },
"mappings" : {
"events" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
@bemeyert
bemeyert / Debug information with timeout set
Last active November 29, 2016 11:38
Runner timeout via Salt API
Json_return="$(curl -sSk ${API} ${CURL_OPTS} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-b ${cookie_file} \
-d '
[{
"client": "runner",
"fun": "state.orchestrate",
"mods": "'"${orchestrator_state}"'",
"timeout": 900,
{%- set storage_size = (grains.get('mem_total')/2)|round|int %}
{%- set varnish =
{
'version': '3.0',
'vclfile': 'orig.vcl',
'metrics': True,
'port': '80',
'min_threads': '50',
'max_threads': '1000',
'storage_size': storage_size ~ 'M'
@bemeyert
bemeyert / Correct map.jinja
Last active January 11, 2020 22:54
Saltstack - map.jinja usage fails
{#- 'version' comes only from pillars
'application_dir' - Atlassian puts the string "-standalone" at the end of the extracted application
#}
{%- set jira =
{
'install_dir' : '/opt/jira',
'user' : 'jira',
'group' : 'jira',
'home' : '/data/jira',
'version' : '',
@bemeyert
bemeyert / main.cf
Created June 2, 2015 10:00
Postfix Conf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
default_database_type = btree
default_process_limit = 80
html_directory = no
@bemeyert
bemeyert / gist:ab3d0567d953d154a9d4
Created April 27, 2015 13:20
Saltstack elasticsearch as job_cache
In my master configuration:
```yaml
master_job_cache: elasticsearch
elasticsearch:
host: 'eshost:9200'
index: 'salt_test'
```