gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub | pbcopy
set public key as deploy key on github e.g https://github.com/USER/REPO/settings/keys
rm 'github_deploy_key.pub'
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: ceph-before-reboot-script | |
namespace: rook-ceph | |
data: | |
status-check.sh: |- | |
#!/bin/bash | |
# preflightCheck checks for existence of "dependencies" | |
preflightCheck() { |
#cloud-config | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- gnupg-agent | |
- software-properties-common | |
# Enable ipv4 forwarding, required on CIS hardened machines |
--- | |
# Source: drone/templates/deployment-runner.yaml | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: drone-kube-runner | |
namespace: pipeline | |
labels: | |
app: drone | |
chart: "drone-2.2.0" |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: dd-agent-config | |
namespace: datadog-monitor | |
data: | |
kube_apiserver_metrics.yaml: | | |
init_config: |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: datadog-agent | |
namespace: datadog-monitor | |
spec: | |
selector: | |
matchLabels: | |
app: datadog-agent | |
updateStrategy: |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
gem install travis
ssh-keygen -t rsa -b 4096 -f 'github_deploy_key' -N ''
cat github_deploy_key.pub | pbcopy
set public key as deploy key on github e.g https://github.com/USER/REPO/settings/keys
rm 'github_deploy_key.pub'
#!/bin/sh | |
ORG="deck15" | |
curl -s https://api.github.com/orgs/$ORG/repos?per_page=200 | jq -r '.[].ssh_url' | xargs -I {} git clone {} | |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
variable "resourceGroupName" { | |
default = "myResourceGroup" | |
} | |
variable "location" { | |
default = "West US" | |
} | |
variable "clusterName" { | |
default = "servicefabcluster" | |
} | |
variable "nodeCount" { |