Skip to content

Instantly share code, notes, and snippets.

vault write auth/kubernetes/config \
kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \
token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \
issuer="https://kubernetes.default.svc.cluster.local"
@eeganlf
eeganlf / gist:ee579d3943d6ea14d0777f62d77033c3
Created February 7, 2024 20:36
deptracklfs262.values.yaml
ingress:
enabled: true
tls:
enabled: false
secretName: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## allow large bom.xml uploads:
# nginx.ingress.kubernetes.io/proxy-body-size: 10m
vault write auth/kubernetes/config \
kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \
token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \
issuer="https://kubernetes.default.svc.cluster.local"
#!/bin/bash
################# LFD459:1.25.1 s_02/k8scp.sh ################
# The code herein is: Copyright the Linux Foundation, 2022
#
# This Copyright is retained for the purpose of protecting free
# redistribution of source.
#
# URL: https://training.linuxfoundation.org
# email: [email protected]
#
node {
def app
stage('Clone repository') {
checkout scm
}
stage('Update GIT') {
@eeganlf
eeganlf / Jenkinsfile
Last active July 26, 2024 19:47
Jenkinsfile LFS261 Lab 8 final
pipeline {
agent none
stages {
stage('worker-build') {
agent {
docker {
image 'maven:3.9.8-sapmachine-21'
@eeganlf
eeganlf / Jenkinsfile
Last active July 24, 2024 23:16 — forked from initcron/Jenkinsfile
worker/jenkinsfile with Per stage agent as well as conditional execution.
pipeline {
agent none
stages{
stage("build"){
when{
changeset "**/worker/**"
}
@eeganlf
eeganlf / docker_install_debian.sh
Created November 14, 2022 00:07 — forked from initcron/docker_install_debian.sh
Install Docker on Debian. Run this as root.
#!/bin/sh
apt-get update
apt-get install -yq \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
@eeganlf
eeganlf / pipe-01-docker-agent
Last active August 14, 2024 18:50
lfs261-ch8-pipeline
pipeline {
agent {
docker { image 'node:20.16.0-alpine3.20' }
}
stages {
stage('Smoke Test') {
steps {
sh 'node --version'
sleep 10
}
stage('Trigger deployment') {
agent any
environment{
def GIT_COMMIT = "${env.GIT_COMMIT}"
}
steps{
echo "${GIT_COMMIT}"
echo "triggering deployment"
// passing variables to job deployment run by vote-deploy repository Jenkinsfile
build job: 'deployment', parameters: [string(name: 'DOCKERTAG', value: GIT_COMMIT)]