Advertisement
Guest User

Example GoDocker config with fake auth

a guest
Apr 11th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 7.52 KB | None | 0 0
  1. ########################################
  2. # GO-Docker                            #
  3. ########################################
  4.  
  5. # PLUGINS ##############################
  6. plugins_dir: '/opt/go-docker/go-d-sched/plugins'
  7.  
  8. # DIRECTORIES ##########################
  9. shared_dir: '/opt/go-docker/godshared'
  10.  
  11. # DEFAULTS #############################
  12.  
  13. defaults_cpu: 1
  14. defaults_ram: 2
  15.  
  16. # Disable network in containers
  17. # If set , application won't be able to install sudo package if not present.
  18. # In this case, you should make sure container contains required packages.
  19. network_disabled: False
  20.  
  21. # Allow root access to containers
  22. allow_root: True
  23.  
  24. # Number of days of inactivity after which user usage should be reset
  25. user_reset_usage_duration: 30
  26.  
  27. # Constraints #########################
  28. # See Docker labels
  29. constraints:
  30.     - name: 'storage'
  31.       value: 'ssd,disk'
  32.     - name: 'resource'
  33.       value: 'gpu_10.5'
  34.  
  35.  
  36. # Live notifications ##################
  37. # Use live notifications on tasks, needs Go-D-Live server
  38. live_events: False
  39. #  Go-D-Live websocket URL
  40. live_events_url: 'http://localhost:8001'
  41.  
  42.  
  43. # SECURITY #############################
  44. secret_passphrase: 'mysamplesecret'
  45.  
  46. # IMAGES ###############################
  47. # Default container images proposed to user
  48. default_images:
  49.     - name: 'centos'
  50.       url: 'centos:latest'
  51.       interactive: False
  52.       default: True
  53.     - name: 'ubuntu'
  54.       url: 'rastasheep/ubuntu-sshd'
  55.       interactive: True
  56.  
  57. # Needs swarm >= 0.2
  58. allow_user_images: False
  59.  
  60. # Private Registry #####################
  61. # Allow pull only from a private registry, value is appended to image name
  62. # Default: null
  63. # Example value: 'my.registry.com:5000'
  64. # => pull myimage => pull my.registry.com:5000/myimage
  65. use_private_registry: null
  66.  
  67. # VOLUMES ##############################
  68. # Mandatory fields
  69. # name: label, home is a reserved label that will map to user home directory
  70. # acl: rw (read and write) or ro (read-only)
  71. # path: local path for this directory (ignored for home)
  72. # Optional fields
  73. # mount: path in the container, if not set, use the same then path
  74. #
  75. # path and mount can specify $USERID variable that will be replaced by user identifier.
  76.  
  77. volumes:
  78.     - name: 'home'
  79.       acl: 'rw'
  80.  
  81. # Temporary local volumes
  82. # Use docker-plugin-zfs Docker volume plugin: True, False
  83. # Plugin must be running on all slaves and must be supported by framework
  84.  
  85. plugin_zfs: False
  86.  
  87.  
  88. # PORTS ###############################
  89. port_allocate: True  # allocates a port from following range instead of mapping port to itself
  90. port_start: 10000
  91. port_range: 1000
  92.  
  93.  
  94. # MONGODB ##############################
  95. mongo_url: 'mongodb://god-mongo:27017/'
  96. mongo_db: 'god'
  97.  
  98. # REDIS ################################
  99. # Redis configuration
  100. redis_host: 'god-redis'
  101. redis_port: 6379
  102. # Redis database id
  103. redis_db: 0
  104. redis_prefix: 'god'
  105.  
  106. # INFLUXDB ############################
  107. influxdb_host: null # or null if not required
  108. influxdb_port: 8086
  109. influxdb_user: 'root'
  110. influxdb_password: 'root'
  111. influxdb_db: 'god'
  112.  
  113. # Scheduling ###########################
  114. scheduler_policy: 'FiFo'
  115. max_job_pop: 100
  116.  
  117. # Execution system #####################
  118. executor: 'swarm'
  119. #executor: 'fake'
  120. #executor: 'mesos'
  121.  
  122. # Stats ################################
  123. prometheus_key: 'mysecretkey'
  124. prometheus_exporter: '127.0.0.1:6543'
  125.  
  126. # Mesos ##
  127. mesos_master: '127.0.0.1:5050'
  128.  
  129. # Authentication #######################
  130. auth_policy: 'fake'
  131.  
  132. ldap_host: null
  133. ldap_port: null
  134. ldap_dn: null
  135.  
  136. # Watchers #############################
  137. # List of watchers, comma separated, example 'maxlifespan'
  138. watchers: null
  139.  
  140. # Max job life duration expressed in d(days), h(hours), s(seconds) if not specified in task
  141. maxlifespan: '7d'
  142.  
  143. # Requirement dynamic fields (optional) ##########
  144. # fields that can be updated after task submission in requirements, string type only
  145. #dynamic_fields:
  146. #    - name: 'maxlifespan'
  147. #      admin_only: False
  148.  
  149. # Docker ###############################
  150. docker_url: 'tcp://127.0.0.1:2376'
  151. # API version from docker version command
  152. docker_api_version: '1.17'
  153.  
  154. # CAdvisor #############################
  155. cadvisor_port: 8080
  156. # /containers/docker/ to map to /containers/docker/container_id
  157. cadvisor_url_part: '/containers/docker/'
  158. # Number of samples (seconds) to display , according to cAdvisor launch option -storage_duration
  159. cadvisor_samples: 60
  160.  
  161. # Email SMTP ################################
  162. email_from: 'godocker@do-no-reply.fr'
  163. email_smtp_tls: False
  164. email_smtp_user: null
  165. email_smtp_password: null
  166. email_smtp_host: null
  167. email_smtp_port: 25
  168.  
  169. # Clean up ##################################
  170. # Number of days after which job directory
  171. # can be deleted by cleanup script
  172. # Default: 30
  173. clean_old: 30
  174.  
  175. # Disk quota ###############################
  176. # Optional disk quota management
  177. # Default: None (no quota)
  178. # Possible values (value + unit): 12 (bytes), 5k (kilobytes), 12M (megabytes), 40G (gigabytes)
  179. disk_default_quota: null
  180.  
  181.  
  182. # Rate limiting ############################
  183. # Max number of pending tasks for a user
  184. # New tasks will be rejected if rate is reached
  185. # It is wise to limit it to limit total number of pending jobs for scheduler.
  186. # Default: None (no limit)
  187. # Value example: 1000
  188. rate_limit: null
  189. # Max number of pending tasks for all users (to avoid scheduler overload)
  190. # When limit is reached, new tasks are rejected
  191. rate_limit_all: 10000
  192.  
  193.  
  194. # Status Manager ###########################
  195. # Uncomment to use etcd monitoring
  196. #status_policy: 'etcd'
  197. #etcd_prefix: '/godocker'
  198. #etcd_host: '127.0.0.1'
  199. #etcd_port: 4001
  200.  
  201. # Guest management ########################
  202.  
  203. # Allow guest (user not having a local account) to login
  204. guest_allow: False
  205. # Local user that will run the tasks for the guest
  206. guest_bind: null
  207. # Allow guest to run scripts as root in containers
  208. guest_allow_root: False
  209. # Home directory base path for guest, guest home dir will be guest_home_root/guest_userid
  210. # null => No home directory
  211. # 'default', use guest_bind home directory
  212. guest_home_root: null
  213.  
  214. # Logging ##################################
  215. log_config:
  216.     'version': 1
  217.     'formatters':
  218.         'generic':
  219.             'format': '%(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s'
  220.     'handlers':
  221.         'console':
  222.             'class': 'logging.StreamHandler'
  223.             'formatter': 'generic'
  224.             'level': 'INFO'
  225.         'watcher':
  226.             'class': 'logging.FileHandler'
  227.             'filename': 'godwatcher.log'
  228.             'formatter': 'generic'
  229.             'level': 'INFO'
  230.         'scheduler':
  231.             'class': 'logging.FileHandler'
  232.             'filename': 'godscheduler.log'
  233.             'formatter': 'generic'
  234.             'level': 'INFO'
  235.         'gelf':
  236.             'class': 'graypy.GELFHandler'
  237.             'host': 'localhost'
  238.             'port': 12201
  239.             'formatter': 'generic'
  240.             'level': 'INFO'
  241.         'logstash':
  242.             'class': 'logstash.LogstashHandler'
  243.             'host': 'localhost'
  244.             'port': 59590
  245.             'formatter': 'generic'
  246.             'level': 'INFO'
  247.     'loggers':
  248.         'root':
  249.             'level': 'INFO'
  250.             'handlers':
  251.                - 'console'
  252.         'godocker-watcher':
  253.             'level': 'INFO'
  254.             'handlers':
  255.                - 'console'
  256.                 - 'watcher'
  257.                 - 'gelf'
  258.         'godocker-scheduler':
  259.             'level': 'INFO'
  260.             'handlers':
  261.                - 'console'
  262.                 - 'scheduler'
  263.                 - 'gelf'
  264.     'disable_existing_logers': False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement