Skip to content

Instantly share code, notes, and snippets.

View strigazi's full-sized avatar

Spyros Trigazis strigazi

  • CERN
  • Geneva, Switzerland
View GitHub Profile
#cloud-config
merge_how: dict(recurse_array)+list(append)
write_files:
- path: /etc/sysconfig/heat-params
owner: "root:root"
permissions: "0600"
content: |
CGROUP_DRIVER="$CGROUP_DRIVER"
NETWORK_DRIVER="$NETWORK_DRIVER"
TLS_DISABLED="$TLS_DISABLED"
---
# Source: nginx-ingress/templates/controller-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: nginx-ingress
chart: nginx-ingress-1.6.1
component: "controller"
heritage: Tiller
---
apiVersion: v1
kind: Service
metadata:
name: go-server
labels:
app: go-server
spec:
type: ClusterIP
ports:
Content-Type: multipart/mixed; boundary="===============1175957420267015713=="
MIME-Version: 1.0
--===============1175957420267015713==
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config"
Content-Type: multipart/mixed; boundary="===============0805081514788562408=="
MIME-Version: 1.0
--===============0805081514788562408==
Content-Type: text/cloud-config; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="cloud-config"
{
"ignition": { "version": "3.0.0" },
"systemd": {
"units": [
{
"contents": "[Unit]\nDescription=Run heat-container-agent\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nExecStartPre=mkdir -p /var/lib/heat-container-agent\nExecStartPre=mkdir -p /var/run/heat-config\nExecStartPre=mkdir -p /var/run/os-collect-config\nExecStartPre=mkdir -p /opt/stack/os-config-refresh\nExecStartPre=mkdir -p /srv/magnum\nExecStartPre=-/bin/podman rm -f heat-container-agent\nExecStart=/bin/podman run \\\n --name heat-container-agent \\\n --privileged \\\n --volume /srv/magnum:/srv/magnum \\\n --volume /opt/stack/os-config-refresh:/opt/stack/os-config-refresh \\\n --volume /run/systemd:/run/systemd \\\n --volume /etc/:/etc/ \\\n --volume /var/lib:/var/lib \\\n --volume /var/run:/var/run \\\n --volume /var/log:/var/log \\\n --volume /tmp:/tmp \\\n --volume /dev:/dev \\\n --net=host \\\n docker.io/o
@strigazi
strigazi / nginx.conf
Created October 15, 2019 12:56 — forked from morhekil/nginx.conf
Full request/response body logging in nginx
http {
log_format bodylog '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time '
'<"$request_body" >"$resp_body"';
lua_need_request_body on;
set $resp_body "";
body_filter_by_lua '
version = 2
root = "/var/lib/containerd"
state = "/run/containerd"
plugin_dir = "/opt/containerd/plugins"
disabled_plugins = []
required_plugins = []
oom_score = 0
imports = ["/etc/containerd/config.toml"]
[grpc]
{
"dashboard":
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "Prometheus data source",
"type": "datasource",
"pluginId": "prometheus",
# To be used with
# https://raw.githubusercontent.com/dmwm/CMSKubernetes/3c153baebfa10f790569dd1347048e2db1cfca2a/kubernetes/cmsweb/storages/cephfs-storage-couchdb.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: couchdb
spec:
selector: