version: '2.4'
services:
  node-init:
    image: "nexus.gz1.opensdn.io:5102/opensdn-node-init:nightly"
    env_file: /etc/contrail/common_kubemanager.env
    environment:
      - CONTRAIL_STATUS_IMAGE="nexus.gz1.opensdn.io:5102/opensdn-status:nightly"
    privileged: true
    pid: host
    network_mode: "host"
    volumes:
      - /usr/bin:/host/usr/bin
      - /etc/contrail/ssl/kubernetes-master:/etc/contrail/ssl
      - /etc/sysctl.d:/etc/sysctl.d
      - /etc/hosts:/etc/hosts
      - /var/log/contrail:/var/log/contrail
      - /etc/timezone:/etc/timezone
      - /etc/localtime:/etc/localtime
      - /var/crashes:/var/crashes
    logging:
      driver: json-file
      options:
        max-file: "5"
        max-size: "20m"

  kubemanager:
    image: "nexus.gz1.opensdn.io:5102/opensdn-kubernetes-kube-manager:nightly"
    env_file: /etc/contrail/common_kubemanager.env
    network_mode: host
    environment:
      - K8S_TOKEN=eyJhbGciOiJSUzI1NiIsImtpZCI6Ik5PeHE5V3ctOHlKdkZQZGxMTHprMW1iNFdqT0lqR25qSWVEaGN0TnQ5SzgifQ.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjb250cmFpbCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJjb250cmFpbC1rdWJlbWFuYWdlciIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJjb250cmFpbC1rdWJlbWFuYWdlciIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjFhOTcyODg1LTBjMWMtNDY5Yy1iZGEzLWY0ODlmOGI3YzlkMCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpjb250cmFpbDpjb250cmFpbC1rdWJlbWFuYWdlciJ9.rSOOWNhnuXifXvVEsQ-hvNmfAi-FvYzxSk92uoph0Ym4cmRm9Q3rU6e3YmBmXiqwIhImcX1FD2Hhc4-Za07xNNTH4gs1tv1S9QYfma7Ts2b01uxDjLfCfac7cHMQZLtKUwWafsXVM3pk75ChDVkfo_2FtkxQV2fd8bCtLLNYdc-DIWc1KE5pfhIthjL76N36peNlipJvijmhybvKzUCI5qu_FJvptSAdOFqfr7TA7bS641wJlD0ZgfgQKPwgG2vVc4uM8-L-8Qs7GJqOd8e1bvlEQoR25upAPQRs6N_RVZ3GvXD0zcUztRivAwSCKbYszratRMq5XpAV9rbUipWnag
    volumes_from:
      - node-init
    depends_on:
      - node-init
    restart: always
    logging:
      driver: json-file
      options:
        max-file: "5"
        max-size: "20m"
