Skip to content

Instantly share code, notes, and snippets.

View nlamirault's full-sized avatar

Nicolas Lamirault nlamirault

View GitHub Profile
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: external-dns
namespace: dns
spec:
chart:
spec:
chart: external-dns
@nlamirault
nlamirault / chart-values.yaml
Last active December 4, 2020 20:29
Flux v2
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: external-dns
namespace: flux-system
spec:
values:
provider: cloudflare
resources:
### Keybase proof
I hereby claim:
* I am nlamirault on github.
* I am nlamirault (https://keybase.io/nlamirault) on keybase.
* I have a public key whose fingerprint is C399 18B3 EBDE 35C2 3B8D 0B8E 5F99 269A 6FCA 437C
To claim this, I am signing this object:
$ molecule init role -d gce -r foobar
--> Initializing new role foobar...
Initialized role in /tmp/foobar successfully.
$ $ tree foobar/
Permissions Size User Date Modified Name
drwxr-xr-x - nicolas 28 Mar 14:55 foobar
.rw-r--r-- 296 nicolas 28 Mar 14:55 ├── .yamllint
drwxr-xr-x - nicolas 28 Mar 14:55 ├── defaults
.rw-r--r-- 31 nicolas 28 Mar 14:55 │ └── main.yml
$ kubectl get ingress --all-namespaces
NAMESPACE NAME HOSTS ADDRESS PORTS AGE
hypriot hypriot-ingress hypriot.jarvis 192.168.1.20,... 80 2h
kube-system kubernetes-dashboard-ingress dashboard.jarvis 192.168.1.20,... 80 72d
monitoring prometheus prometheus.jarvis 192.168.1.20,... 80 17d
$ cat /srv/docker/coredns/Corefile
.:53 {
kubernetes jarvis {
endpoint https://192.168.1.36:6443
@nlamirault
nlamirault / teleinfo.py
Created October 15, 2017 09:33
Home Assistant Teleinfo platform
"""
Support for Teleinfo sensors.
Teleinfo is a French specific protocol used in electricity smart meters.
It provides real time information on power consumption, rates and current on
a user accessible serial port.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.teleinfo/
"""
$ ansible -vvvvvvv 192.168.1.20 -m ping -i inventory No config file found; using defaults
Loading callback plugin minimal of type stdout, v2.0 from /usr/local/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc
META: ran handlers
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/system/ping.py
<192.168.1.20> ESTABLISH SSH CONNECTION FOR USER: pirate
<192.168.1.20> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<192.168.1.20> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<192.168.1.20> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=pirate)
<192.168.1.20> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=1
### Keybase proof
I hereby claim:
* I am nlamirault on github.
* I am nlamirault (https://keybase.io/nlamirault) on keybase.
* I have a public key whose fingerprint is C399 18B3 EBDE 35C2 3B8D 0B8E 5F99 269A 6FCA 437C
To claim this, I am signing this object:
I1101 15:26:40.649986 1 reflector.go:211] Starting reflector *api.Node (0s) from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:394
I1101 15:26:40.650195 1 reflector.go:249] Listing and watching *api.Node from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:394
I1101 15:26:40.648232 1 reflector.go:211] Starting reflector *api.PersistentVolume (0s) from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:398
I1101 15:26:40.652917 1 reflector.go:211] Starting reflector *api.PersistentVolumeClaim (0s) from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:399
I1101 15:26:40.653036 1 reflector.go:249] Listing and watching *api.PersistentVolume from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:398
I1101 15:26:40.653273 1 reflector.go:211] Starting reflector *api.Service (0s) from k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:404
I1101 15:26:40.653472 1 reflector.go:211] Starting reflector *api.ReplicationControlle
$ docker logs -f 54b2ccb0504a
2016-10-31 08:40:19.236027 I | etcdmain: etcd Version: 2.2.5
2016-10-31 08:40:19.236571 I | etcdmain: Git SHA: bc9ddf2
2016-10-31 08:40:19.236707 I | etcdmain: Go Version: go1.6
2016-10-31 08:40:19.236826 I | etcdmain: Go OS/Arch: linux/arm
2016-10-31 08:40:19.236947 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
2016-10-31 08:40:19.237330 N | etcdmain: the server is already initialized as member before, starting as etcd member...
2016-10-31 08:40:19.244012 I | etcdmain: listening for peers on http://localhost:2380
2016-10-31 08:40:19.244987 I | etcdmain: listening for peers on http://localhost:7001
2016-10-31 08:40:19.245368 I | etcdmain: listening for client requests on http://127.0.0.1:2379