View middleware.go
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
package main | |
import ( | |
"fmt" | |
) | |
type Service interface { | |
Do() | |
} |
View gist:e46a7f9a79ef6d1da6964a035be2cfb9
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: 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
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: | |
labels: | |
k8s-app: weave-net | |
name: weave-net | |
spec: | |
clusterIP: None | |
ports: | |
- name: weave-metrics |
View node-dns-local-servicemonitor-service.yaml
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: | |
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
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: 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
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/v1beta2 | |
kind: Deployment | |
metadata: | |
labels: | |
app: kube-state-metrics | |
name: kube-state-metrics | |
namespace: monitoring | |
spec: | |
replicas: 1 | |
selector: |
View gist:c09243f0d61772bb1a7b93ce9a295362
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
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
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: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
name: weave-net | |
role.kubernetes.io/networking: "1" | |
name: weave-net | |
namespace: kube-system | |
spec: | |
selector: |
View kube.yaml
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: kops/v1alpha2 | |
kind: Cluster | |
metadata: | |
name: kube.kamilhristov.com | |
spec: | |
cloudProvider: aws | |
etcdClusters: | |
- etcdMembers: | |
- instanceGroup: master-1 | |
name: master-1 |
View gist:ced537f02fadd207483c70476fb0ba06
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
test |
NewerOlder