Skip to content

Instantly share code, notes, and snippets.

Owain Lewis owainlewis

Block or report user

Report or block owainlewis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b6c40556ac81d3550500bc4cb8b7d5c2
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: oci-block-volume
spec:
storageClassName: oci
selector:
matchLabels:
failure-domain.beta.kubernetes.io/zone: AD-1
accessModes:
@owainlewis
owainlewis / ETCD.sh
Last active Oct 10, 2018
Kubernetes kubeadm notes
View ETCD.sh
# Exec into Kubernetes docker image on the master
# docker exec -it $ID sh
ETCDCTL_API=3 etcdctl --cacert=/etc/kubernetes/pki/etcd/ca.crt \
--cert=/etc/kubernetes/pki/etcd/peer.crt \
--key=/etc/kubernetes/pki/etcd/peer.key \
get /registry/namespaces/default -w=json
View oci-volume-provisioner.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: oci-volume-provisioner
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
View oci-volume-provisioner.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: oci-volume-provisioner
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
View production.yaml
image:
## Bitnami MongoDB registry
##
registry: docker.io
## Bitnami MongoDB image name
##
repository: bitnami/mongodb
## Bitnami MongoDB image tag
## ref: https://hub.docker.com/r/bitnami/mongodb/tags/
##
View README.md
View fluent-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: fluent-bit-config
labels:
k8s-app: fluent-bit
data:
# Configuration files: server, input, filters and output
# ======================================================
fluent-bit.conf: |
View kibana-svc.yaml
apiVersion: v1
kind: Service
metadata:
name: kibana
labels:
app: kibana
spec:
type: NodePort
ports:
- port: 5601
View elastic.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: elasticsearch
labels:
service: elasticsearch
spec:
serviceName: es
replicas: 2
selector:
View ubuntu.yaml
apiVersion: v1
kind: Pod
metadata:
name: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu:latest
# Just spin & wait forever
command: [ "/bin/bash", "-c", "--" ]
You can’t perform that action at this time.