Skip to content

Instantly share code, notes, and snippets.

@simonswine
Last active July 5, 2018 15:44
Show Gist options
  • Save simonswine/a50472f2052af76ae066f7ed86dd0fa2 to your computer and use it in GitHub Desktop.
Save simonswine/a50472f2052af76ae066f7ed86dd0fa2 to your computer and use it in GitHub Desktop.
Run a standalone API server
version: '2'
services:
etcd:
image: quay.io/coreos/etcd:v3.1.12
ports:
- 2379
volumes:
- etcd_data:/etcd_data
command:
- /usr/local/bin/etcd
- -name
- etcd
- --data-dir
- /etcd_data
- -advertise-client-urls
- http://etcd:2379
- -listen-client-urls
- http://0.0.0.0:2379
- -initial-advertise-peer-urls
- http://etcd:2380
- -listen-peer-urls
- http://0.0.0.0:2380
- -initial-cluster
- etcd=http://etcd:2380
apiserver:
image: eu.gcr.io/google_containers/hyperkube-amd64:v1.7.4
#image: eu.gcr.io/google_containers/hyperkube-amd64:v1.10.5
ports:
- 8080:8080
command:
- /hyperkube
- apiserver
- --etcd-servers=http://etcd:2379
- --insecure-bind-address=0.0.0.0
- --authorization-mode=AlwaysAllow
- --service-cluster-ip-range=10.0.0.0/16
volumes:
etcd_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment