Skip to content

Instantly share code, notes, and snippets.

View shimont's full-sized avatar
🍹

Shimon Tolts shimont

🍹
View GitHub Profile
@shimont
shimont / ingress.yaml
Created May 13, 2022 15:53
kubectl convert -f hn-ingress-2.yaml --output-version networking.k8s.io/v1
#Output
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
creationTimestamp: null
labels:
@shimont
shimont / yaml
Created May 13, 2022 15:52
kubectl convert -f hn-ingress-2.yaml --output-version networking.k8s.io/v1
#Output
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
creationTimestamp: null
labels:
@shimont
shimont / config.js
Created March 26, 2019 21:03
AWS Systems Manager Parameter Store
const fs = require('fs')
const path = require('path')
try {
fs.unlinkSync(path.join(__dirname, 'local.json'))
} catch (err) {}
const AWS = require('aws-sdk')
AWS.config.update({ region: 'us-east-1' })
const ssm = new AWS.SSM()
var serviceName = require('../package.json').name
@shimont
shimont / dbconfig.js
Last active March 22, 2019 14:57
node-config
$ npm install config
$ mkdir config
$ vi config/default.json
{
"Customer": {
"dbConfig": {
"host": "localhost",
"port": 5984,
"user": "dbuser",
FROM golang:alpine
RUN adduser -D app -h /go/
ADD code/src /go/src/enrichment/
RUN chown -R app:app /go/
WORKDIR /go/src/enrichment/