Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Jenkins Configuraitons Directory
cd $JENKINS_HOME
# Add general configurations, job configurations, and user content
git add -- *.xml jobs/*/*.xml userContent/* ansible/*
# only add user configurations if they exist
if [ -d users ]; then
user_configs=`ls users/*/config.xml`
{
"useWhiteList": false,
"jdbc": {
"username": "privori",
"password": "privori",
"url": "jdbc:h2:/opt/tessera/qdata/database/db;MODE=Oracle;TRACE_LEVEL_SYSTEM_OUT=0",
"autoCreateTables": true
},
"serverConfigs": [
{
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-server-conf
labels:
name: prometheus-server-conf
namespace: default
data:
prometheus.yml: |-
global:
@alexsplashex
alexsplashex / zookeeper_micro.yaml
Created April 4, 2019 10:15
zookeeper_micro.yaml
apiVersion: v1
kind: Service
metadata:
name: zk-hs
labels:
app: zk
spec:
ports:
- port: 2888
name: server
@alexsplashex
alexsplashex / bookee.yaml
Created April 4, 2019 10:59
bookee.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: bookie-config
data:
PULSAR_MEM: "\" -Xms64m -Xmx256m -XX:MaxDirectMemorySize=256m\""
dbStorage_writeCacheMaxSizeMb: "32" # Write cache size (direct memory)
dbStorage_readAheadCacheMaxSizeMb: "32" # Read cache size (direct memory)
zkServers: zk-cs
statsProviderClass: org.apache.bookkeeper.stats.prometheus.PrometheusMetricsProvider
apiVersion: v1
kind: ConfigMap
metadata:
name: broker-config
data:
PULSAR_MEM: "\" -Xms64m -Xmx128m -XX:MaxDirectMemorySize=128m\""
zookeeperServers: zk-cs
configurationStoreServers: zk-cs
clusterName: local
managedLedgerDefaultEnsembleSize: "1"
## Include detailed Pulsar dashboard
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: pulsar-dashboard
spec:
replicas: 1
template:
metadata:
labels: