Skip to content

Instantly share code, notes, and snippets.

View DavadDi's full-sized avatar

DavadDi DavadDi

View GitHub Profile
@DavadDi
DavadDi / Count Code lines
Created August 17, 2019 02:08 — forked from amitchhajer/Count Code lines
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n
{
"configs": {
"listeners": {
"@type": "type.googleapis.com/envoy.admin.v2alpha.ListenersConfigDump",
"version_info": "2019-02-15T05:53:49Z/8",
"static_listeners": [
{
"listener": {
"address": {
"socket_address": {
"listeners": {
"@type": "type.googleapis.com/envoy.admin.v2alpha.ListenersConfigDump",
"version_info": "2019-02-13T12:52:07Z/11",
"static_listeners": [
{
"listener": {
"address": {
"socket_address": {
"address": "0.0.0.0",
"port_value": 15090
{
"configs": {
"routes": {
"@type": "type.googleapis.com/envoy.admin.v2alpha.RoutesConfigDump",
"static_route_configs": [
{
"route_config": {
"name": "inbound|5000||helloworld.default.svc.cluster.local",
"virtual_hosts": [
{
{
"configs": {
"listeners": {
},
"clusters": {
"@type": "type.googleapis.com/envoy.admin.v2alpha.ClustersConfigDump",
"version_info": "2019-02-04T17:51:21Z/74",
"static_clusters": [
{
"cluster": {
{
"node": {
"id": "sidecar~10.128.45.2~sleep-7dc47f96b6-lnf9c.default~default.svc.cluster.local",
"cluster": "sleep",
"metadata": {"INTERCEPTION_MODE":"REDIRECT","ISTIO_PROXY_SHA":"istio-proxy:930841ca88b15365737acb7eddeea6733d4f98b9","ISTIO_PROXY_VERSION":"1.0.2","ISTIO_VERSION":"1.0.5","POD_NAME":"sleep-7dc47f96b6-lnf9c","app":"sleep","istio":"sidecar"}
},
"stats_config": {
"use_all_default_tags": false,
"stats_tags": [{
# cat /etc/istio/config/mesh
# Set the following variable to true to disable policy checks by the Mixer.
# Note that metrics will still be reported to the Mixer.
disablePolicyChecks: false
# Set enableTracing to false to disable request tracing.
enableTracing: true
# Set accessLogFile to empty string to disable access log.
accessLogFile: "/dev/stdout"
apiVersion: v1
kind: Pod
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
sidecar.istio.io/inject: "false"
creationTimestamp: 2019-01-15T08:24:23Z
generateName: istio-pilot-f9d78b7b9-
labels:
app: pilot
# cat /var/lib/istio/envoy/envoy_bootstrap_tmpl.json
{
"node": {
"id": "{{ .nodeID }}",
"cluster": "{{ .cluster }}",
{{ if .zone }}
"locality": {
"zone": "{{ .zone }}"
},
{{ end }}
@DavadDi
DavadDi / 1_kubernetes_on_macOS.md
Created January 15, 2019 02:54 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites