Skip to content

Instantly share code, notes, and snippets.

@epk
epk / ignition.yaml
Last active January 8, 2021 01:50
ignition.yaml
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSWf+pMgyV7gCuYvYh0ySizmKLhCCZCRw4trVqLeqol
@epk
epk / backend-config-schema.yaml
Created January 15, 2021 01:12
backend-config-schema.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: "2021-01-07T15:25:19Z"
generation: 1
name: backendconfigs.cloud.google.com
resourceVersion: "993"
selfLink: /apis/apiextensions.k8s.io/v1/customresourcedefinitions/backendconfigs.cloud.google.com
uid: 04022ede-4398-4ca9-9c23-c5f5e659c819
spec:
package play
var _ = Buddy(&someBuddy{})
type someBuddy struct{}
func (s *someBuddy) Name() string {
return "somebuddy"
}
@epk
epk / no-comments.js
Created June 21, 2021 20:56 — forked from Darep/no-comments.js
Remove all comments from GitHub Pull Request
// Sometimes it's necessary to do a bit of clean-up
Array.prototype.forEach.call(document.querySelectorAll('.js-comment-delete button'), function(el, i) {
el.removeAttribute('data-confirm');
el.click();
});
{
/*************************
Go
*************************/
"go.useLanguageServer": true,
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
{ config, lib, pkgs, ... }:
let
baseconfig = { allowUnfree = true; };
unstable = import <nixos-unstable> { config = baseconfig; };
in {
imports =
@epk
epk / go.mod
Last active January 9, 2023 06:54
Envoy ALS
module test
go 1.19
require (
buf.build/gen/go/envoyproxy/envoy/bufbuild/connect-go v1.4.1-20221219165829-f29edaef12a2.1
buf.build/gen/go/envoyproxy/envoy/protocolbuffers/go v1.28.1-20221219165829-f29edaef12a2.4
github.com/bufbuild/connect-go v1.4.1
github.com/bufbuild/connect-grpchealth-go v1.0.0
golang.org/x/net v0.4.0
node:
id: identity-aware-proxy
cluster: identity-aware-proxy
admin:
address:
socket_address:
address: 0.0.0.0
port_value: 9901
@epk
epk / README.md
Last active February 19, 2023 06:56
Enable Hubble UI on GKE Dataplane V2

Enable Hubble UI on GKE Dataplane V2

Dataplane V2 does not support L7 visibility so you will be limited to L4 flows.

  1. Add the following to cilium-config ConfigMap's data in kube-system:
kubectl --namespace kube-system edit configmap cilium-config
enable-hubble: "true"
@epk
epk / proxy.go
Last active March 15, 2023 01:14
package proxy
import (
"context"
"net/http"
"net/http/httputil"
"net/url"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"