Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
Working from home

Alok Kumar Singh alok87

🎧
Working from home
View GitHub Profile
View middleware.go
package main
import (
"fmt"
)
type Service interface {
Do()
}
View gist:e46a7f9a79ef6d1da6964a035be2cfb9
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: weave-net
labels:
k8s-app: weave-net
namespace: monitoring
spec:
jobLabel: k8s-app
selector:
View gist:379c6234b582f555c141f6fddea9fbce
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: weave-net
name: weave-net
spec:
clusterIP: None
ports:
- name: weave-metrics
@alok87
alok87 / node-dns-local-servicemonitor-service.yaml
Created Dec 12, 2019
node-dns-local-servicemonitor-service.yaml
View node-dns-local-servicemonitor-service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
k8s-addon: coredns.addons.k8s.io
k8s-app: node-local-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: NodeLocalDNS
name: node-local-dns
namespace: kube-system
View hpa-template.yaml
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ name }}
namespace: {{ namespace }}
spec:
metrics:
- type: Object
object:
metricName: {{ hpa.metrics_metric_name }}
View kube-state-metrics-with-taint.yaml
apiVersion: apps/v1beta2
kind: Deployment
metadata:
labels:
app: kube-state-metrics
name: kube-state-metrics
namespace: monitoring
spec:
replicas: 1
selector:
View gist:c09243f0d61772bb1a7b93ce9a295362
package main
import (
"fmt"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/elb"
View gist:07a2ea274a8962726cb7e875c5ad5887
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
name: weave-net
role.kubernetes.io/networking: "1"
name: weave-net
namespace: kube-system
spec:
selector:
@alok87
alok87 / kube.yaml
Created Aug 31, 2017 — forked from kamilhristov/kube.yaml
Example kops manifest
View kube.yaml
apiVersion: kops/v1alpha2
kind: Cluster
metadata:
name: kube.kamilhristov.com
spec:
cloudProvider: aws
etcdClusters:
- etcdMembers:
- instanceGroup: master-1
name: master-1