This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
application: envoy | |
name: envoy | |
namespace: default | |
spec: | |
replicas: 2 | |
strategy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: envoy-hsvc | |
namespace: default | |
spec: | |
type: ClusterIP | |
clusterIP: None | |
selector: | |
application: envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: grpc-server | |
namespace: default | |
spec: | |
type: ClusterIP | |
clusterIP: None | |
selector: | |
application: envoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer