As configured in my dotfiles.
start new:
tmux
start new with session name:
| --- | |
| // kubectl apply -f svc-v1.yml | |
| kind: Service // can be a loadbalance, ingress or a simple nodeport | |
| spec: | |
| selector: | |
| version: 1.0.0 // The magic |
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| spec: | |
| strategy: | |
| type: Recreate |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #! /usr/bin/python | |
| from datadog import initialize, api | |
| import requests | |
| import time | |
| # DataDog bootstrap | |
| options = { | |
| 'api_key': 'yourkeyhere', | |
| 'app_key': 'yourkeyhere' | |
| } |
| rabbitmq: | |
| hostname: "discovery-rabbit" | |
| image: rabbitmq:3-management | |
| ports: | |
| - "15672:15672" | |
| - "5672:5672" | |
| mongodb: | |
| image: mongo | |
| volumes: |
| discovery: | |
| image: maestroserver/discovery-maestro | |
| ports: | |
| - "5000:5000" | |
| environment: | |
| - "CELERY_BROKER_URL=amqp://rabbitmq:5672" | |
| - "MAESTRO_DATA_URI=http://data:5010" | |
| depends_on: | |
| - rabbitmq | |
| - data |
| client: | |
| image: maestroserver/client-maestro | |
| ports: | |
| - "80:80" | |
| environment: | |
| - "API_URL=http://localhost:8888" | |
| - "STATIC_URL=http://localhost:8888/static/" | |
| depends_on: | |
| - server |
| server: | |
| image: maestroserver/server-maestro | |
| ports: | |
| - "8888:8888" | |
| environment: | |
| - "MAESTRO_MONGO_URI=mongodb/maestro-client" | |
| - "MAESTRO_DISCOVERY_URI=http://discovery:5000" | |
| - "MAESTRO_REPORT_URI=http://reports:5005" | |
| - "SMTP_PORT=25" | |
| - "SMTP_HOST=maildev" |
| #!/bin/bash | |
| if [[ $(whoami) != 'root' ]]; then echo "Run as root"; exit; fi | |
| apt-get update && apt-get install git -y | |
| cd /usr/local/src || echo "/usr/local/src does not exist" | |
| git clone -b stable/newton https://github.com/openstack-dev/devstack.git | |
| cd devstack || exit | |
| sed -i 's/HOST_IP=${HOST_IP:-}/HOST_IP=`dig +short myip.opendns.com @resolver1.opendns.com`/g' stackrc | |
| ./tools/create-stack-user.sh | |
| echo "[[local|localrc]] | |
| disable_service n-net |