Skip to content

Instantly share code, notes, and snippets.

View arslanbekov's full-sized avatar
🇬🇧

Denis Arslanbekov arslanbekov

🇬🇧
View GitHub Profile
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fluentd-elasticsearch
namespace: kube-system
labels:
k8s-app: fluentd-logging
spec:
selector:
matchLabels:
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-dashboards
namespace: monitoring
data:
grafana-dashboard-1.json: |-
{
...
}
@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: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: your-namespace
namespace: your-namespace
rules:
- apiGroups:
- ""
resources:
- pods
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: nginx
@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…
|
@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 / dockerinstall_xenial.sh
Created February 20, 2017 14:48 — forked from indykish/dockerinstall_xenial.sh
Install Docker 1.12 on Ubuntu Xenial 16.04.1 x64
# Install Docker on Xenial 16.04.1 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
sudo apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get -y install apt-transport-https ca-certificates
# Add the new GPG key.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@arslanbekov
arslanbekov / css.css
Last active January 24, 2017 16:40
StyleJenkins
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);
@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);
@keyframes a {
0% {
transform: rotate(0deg)
}
to {
transform: rotate(1turn)
}