Skip to content

Instantly share code, notes, and snippets.

View svkrclg's full-sized avatar
🏠
Working from home

Sk svkrclg

🏠
Working from home
View GitHub Profile
@svkrclg
svkrclg / envoy-deployment.yaml
Created January 28, 2023 11:06
Envoy k8s deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
application: envoy
name: envoy
namespace: default
spec:
replicas: 2
strategy:
@svkrclg
svkrclg / envoy-hsvc.yaml
Created January 28, 2023 11:08
envoy headless service
apiVersion: v1
kind: Service
metadata:
name: envoy-hsvc
namespace: default
spec:
type: ClusterIP
clusterIP: None
selector:
application: envoy
@svkrclg
svkrclg / grpc-server-hsvc.yaml
Last active January 28, 2023 11:30
GRPC server headless service
apiVersion: v1
kind: Service
metadata:
name: grpc-server
namespace: default
spec:
type: ClusterIP
clusterIP: None
selector:
application: envoy
@svkrclg
svkrclg / custom_binary_test.js
Created September 29, 2020 14:19
Run specific chrome binary
const fs = require('fs');
const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');
(async () => {
const chrome = await chromeLauncher.launch({chromePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"}); //Specify chrome binary path to run lighthouse.
const options = {logLevel: 'info', output: 'html', onlyCategories: ['performance'], port: chrome.port};
const runnerResult = await lighthouse('https://example.com', options);
// `.report` is the HTML report as a string