Skip to content

Instantly share code, notes, and snippets.

View patrickleet's full-sized avatar

Patrick Lee Scott patrickleet

View GitHub Profile
@patrickleet
patrickleet / regen.sh
Created November 9, 2020 20:51
regenerate helm index
mkdir -p ~/dev/backups/charts/
gsutil -m cp -r gs://chart-bucket ~/dev/backups/charts/
cd ~/dev/backups/charts/chart-bucket/charts
helm repo index .
gsutil cp ~/dev/backups/charts/chart-bucket/charts/index.yaml gs://chart-bucket/charts/index.yaml
@patrickleet
patrickleet / charts_db-init_Chart.yaml
Created August 25, 2020 21:04
Provision Kubernetes SQL DB from backup
apiVersion: v1
description: A Helm chart for Kubernetes
icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/master/images/java.png
name: db-init
version: 0.0.1
kubectl get pods --all-namespaces | grep Error | awk '{print $2}' | xargs kubectl delete pod -n jx
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
➜ ~ k get cm config -o yaml
apiVersion: v1
data:
config.yaml: |
branch-protection:
orgs:
jenkins-x:
repos:
dummy:
required_status_checks:
@patrickleet
patrickleet / index.mjs
Last active August 14, 2018 17:51
"differential bundling"
import log from 'llog'
import path from 'path'
import fastifyStatic from 'fastify-static'
import fastifyCompress from 'fastify-compress'
import { service } from './service'
import sdkData from './sdkData'
import UA from 'browserslist-useragent'
const { src, legacySrc } = sdkData
047361e93acf107deafdb46d087b8dd47112ecb638b165e38a7ea310f71664ec274c82f691bf88f2e62a5337c882dc2fefb43dd93bb048d38dced12a783189b8bf
~ $ docker service logs svtifpxlbxye
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:gateway] Initiating Event Bus
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for users model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] REDIS_HOST replaced in configuration file
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] REDIS_PORT replaced in configuration file
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for credentials model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | info: [EG:config] Registered schema for applications model.
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config] ConfigPath: /usr/src/service/config/system.config.yml
api-gateway_gateway.1.svtifpxlbxye@ip-172-31-29-227.ec2.internal | debug: [EG:config]
@patrickleet
patrickleet / elasticsearch_cluster.yml
Created December 14, 2017 15:56
docker stack for elasticsearch cluster
version: "3"
networks:
default:
proxy:
external: true
volumes:
{
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
],
"plugins": [
["module-resolver", {