Skip to content

Instantly share code, notes, and snippets.

View carloscarnero's full-sized avatar
😋

Carlos Alberto Carnero Delgado carloscarnero

😋
View GitHub Profile
@carloscarnero
carloscarnero / dind-explorer.yaml
Created August 13, 2021 18:41
A simple deployment that allows connection with the underlying Docker daemon
apiVersion: apps/v1
kind: Deployment
metadata:
name: dind-explorer
labels:
app: dind-explorer
spec:
replicas: 1
selector:
matchLabels:
@carloscarnero
carloscarnero / inspector-deployment.yaml
Created August 12, 2021 12:07
Simple deployment with a privileged that mounts the host's / filesystem
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: inspector
spec:
selector:
matchLabels:
application.name: inspector
replicas: 1
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: example.com
labels:
example.com/nfs.provider: example.com
spec:
capacity:
storage: 1Ti
@carloscarnero
carloscarnero / traefik-v2.yml
Created July 25, 2020 01:15
Traefik v2 as a DaemonSet
---
kind: Namespace
apiVersion: v1
metadata:
name: traefik
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik
@carloscarnero
carloscarnero / 1-rbac.yaml
Created August 14, 2018 02:53
Traefik on Rancher
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
### Keybase proof
I hereby claim:
* I am carloscarnero on github.
* I am carloscarnero (https://keybase.io/carloscarnero) on keybase.
* I have a public key whose fingerprint is 94B5 6748 DBCB 3F76 41CF A3E5 DECC 323E EE50 667F
To claim this, I am signing this object: