Skip to content

Instantly share code, notes, and snippets.

View arslanbekov's full-sized avatar
🇬🇧

Denis Arslanbekov arslanbekov

🇬🇧
View GitHub Profile
@arslanbekov
arslanbekov / node-problem-detector.yaml.j2
Created April 12, 2017 10:48
k8s node-problem-detector
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector-v0.1
namespace: kube-system
labels:
k8s-app: node-problem-detector
version: v0.1
kubernetes.io/cluster-service: "true"
spec:
@arslanbekov
arslanbekov / sassas.md
Created April 30, 2017 11:39 — forked from AdamMarsden/sassas.md
Sass Architecture Structure

#Sass Architecture Structure

sass/
|
|– base/
|   |– _reset.scss       # Reset/normalize
|   |– _typography.scss  # Typography rules
|   ...                  # Etc…
|
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: nginx
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: your-namespace
namespace: your-namespace
rules:
- apiGroups:
- ""
resources:
- pods
@arslanbekov
arslanbekov / kubect-my-shell.sh
Created October 9, 2018 13:58
Kubectl run my-shell
kubectl run my-shell --rm -i --tty --image ubuntu -- bash
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-dashboards
namespace: monitoring
data:
grafana-dashboard-1.json: |-
{
...
}
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd-elasticsearch
namespace: kube-system
labels:
k8s-app: fluentd-logging
spec:
selector:
matchLabels:
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd-elasticsearch
namespace: kube-system
labels:
k8s-app: fluentd-logging
spec:
selector:
matchLabels:
apiVersion: scheduling.k8s.io/v1beta1
description: "This priority class should be used for critical-pods only."
kind: PriorityClass
metadata:
name: custom-high-priority
value: 100000000