Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
This was written for Kubernetes 1.6
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
FROM traefik:camembert | |
ADD traefik.toml . | |
EXPOSE 80 | |
EXPOSE 8080 | |
EXPOSE 443 |
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt
.
As it is not possible to change the ports used for the standalone
authenticator and I already have a nginx running on port 80/443, I opted to use the webroot
method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com
and example.com
).
For this, I placed config files into etc/letsencrypt/configs
, named after <domain>.conf
. The files are simple:
As I've discovered, managing LXC containers is fairly straightforward, but when building out a system for provisioning out user maintained instances of NodeBB, it was imperative that unprivileged LXC containers were used, so that in the event of shell breakout from NodeBB followed by privilege escalation of the saas
user, the root
user in the LXC container would only be an unprivileged user on the host machine.
During the course of development, I ran into numerous blockers when it came to managing LXC containers in unexpected circumstances. Namely:
su
or executing lxc-*
commands as another user via sudo
lxc-*
commands via a program, application, or script. In my case, a Node.js application.#!/bin/bash | |
# | |
# Ashutosh Agrawal | |
# http://blog.theprogrammer.in | |
# | |
# | |
# This bash script simply fetches the log for that hour from Amazon RDS, | |
# parse and genarlise it using mysql_slow_log_parser (https://gist.github.com/theprogrammerin/e3206a4ec7a7a4086ac2) | |
# and then push the parsed log to elastic search using logstash (slowquery.conf)(https://gist.github.com/theprogrammerin/034a3efd849112d166ea) | |
# For analysis on analytic tool like kibana. |
#!/usr/bin/perl | |
# | |
# Ashutosh Agrawal | |
# http://blog.theprogrammer.in | |
# | |
# 2014-11-20 v1.0 | |
# | |
# This script is modified version of SQL parser written by | |
# | |
# Nathanial Hendler |