Skip to content

Instantly share code, notes, and snippets.

@bootswithdefer
bootswithdefer / deployment.yaml
Last active January 30, 2023 11:27
helm chart exercise
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mychart.fullname" . }}
labels:
{{- include "mychart.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
https://p.datadoghq.com/sb/c947af88a-d6ff30bc88fb85b7b702673c460b1ba3
https://p.datadoghq.com/sb/c947af88a-8c8a2a677b8ebc24e7d6a277b5b5ceac
@bootswithdefer
bootswithdefer / rum.js
Created December 9, 2021 19:58
rum.js
var script = document.createElement('script');
script.src = "https://media.geeksforgeeks.org/wp-content/uploads/20190704153043/main.js";
document.head.appendChild(script)
@bootswithdefer
bootswithdefer / vault.groovy
Created November 7, 2018 22:47
Using Hashicorp Vault AppRoles in a Jenkinsfile in pure groovy.
stage('pure-groovy-vault') {
agent none
environment {
VAULT_TOKEN_GEN_CRED = credentials('jenkins-vault-approle')
}
steps {
script {
println("Vault: Authenticate as Jenkins")
def body = """{"role_id": "${VAULT_TOKEN_GEN_CRED_USR}", "secret_id": "${VAULT_TOKEN_GEN_CRED_PSW}"}"""
def url = 'https://vault-url/v1/auth/approle/login'
### Keybase proof
I hereby claim:
* I am bootswithdefer on github.
* I am bootswithdefer (https://keybase.io/bootswithdefer) on keybase.
* I have a public key ASB_Vd54NMv_7Y3ygxh418fph4ZdJLQgPSsb8LnMdKRL_go
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am bootswithdefer on github.
* I am jdefer (https://keybase.io/jdefer) on keybase.
* I have a public key ASCOYqD3hmgd4qdkLPQS0qK4manRuZ5PP73cDEFkNEOGJgo
To claim this, I am signing this object: