Skip to content

docker-compose / testing purpose #3

@ghost

Description

Hi @mingfang ,

Hope you are all well !

Is it possible to create a docker-compose file to startup the master and worker/node ?

Here is what I have done so far

---
version: "3.8"
services:

  master:
    container_name: master-a
    build:
      context: ./master
    image: kubernetes-master
    stdin_open: true
    tty: true
    privileged: true
    networks:
    - internal
    - web
    ports:
    - 6443:6443
    depends_on:
    - node

  node:
    build:
      context: ./node
    container_name: node-a
    image: kubernetes-node
    stdin_open: true
    tty: true
    privileged: true
    networks:
    - internal

networks:
  internal:
    driver: bridge
  web:
    external: true

Do you mind to complete as I struggle with it ?

Cheers,
X

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions