Skip to content

Instantly share code, notes, and snippets.

Avatar

Yitaek Hwang Yitaek

View GitHub Profile
@Yitaek
Yitaek / questdb-influxdb-demo.js
Created May 23, 2021
Code to test out-of-order ingestion via InfluxDB line protocol to QuestDB
View questdb-influxdb-demo.js
const axios = require ('axios')
const net = require("net")
const client = new Client({
user: "admin",
host: "localhost",
database: "qdb",
password: "quest",
port: "8812"
})
View pomerium-values.yaml
authenticate:
idp:
provider: "google"
clientID: "<CLIENT_ID>.apps.googleusercontent.com"
clientSecret: "<CLIENT_SECRET>"
config:
sharedSecret: random-secret
cookieSecret: super-secret
rootDomain: mydomain.example.com
View wildcard-cert.yaml
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: wildcard-cert
spec:
secretName: wildcard-cert
dnsNames:
- '*.mydomain.example.com'
issuerRef:
name: letsencrypt-prod
View cluster-issuer.yaml
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
email: user@example.com
View traefik-values.yaml
additionalArguments:
- "--accesslog=true"
- "--accesslog.format=json"
- "--log.level=INFO"
- "--metrics.prometheus=true"
- "--metrics.prometheus.entryPoint=metrics"
- "--entryPoints.metrics.address=:8082"
deployment:
replicas: 3
View eks-admin-service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: eks-admin
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: eks-admin
@Yitaek
Yitaek / whoami-cert.yaml
Created Aug 5, 2020
whoami application example cert
View whoami-cert.yaml
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: whoami-cert
namespace: whoami
spec:
commonName: whoami.example.com
secretName: whoami-cert
dnsNames:
@Yitaek
Yitaek / issuer.yaml
Created Aug 5, 2020
Cert-manager issuer example
View issuer.yaml
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
email: user@example.com
@Yitaek
Yitaek / whoami.yaml
Last active Aug 5, 2020
Traefik whoami files
View whoami.yaml
---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: default
name: whoami
labels:
app: whoami
spec:
@Yitaek
Yitaek / traefik-values.yaml
Created Aug 5, 2020
Helm Values for Traefik HA Setup
View traefik-values.yaml
additionalArguments:
- "--accesslog=true"
- "--accesslog.format=json"
- "--log.level=DEBUG"
- "--metrics.prometheus=true"
- "--metrics.prometheus.entryPoint=metrics"
- "--entryPoints.metrics.address=:8082"
deployment:
replicas: 3