Initialize/yaml/coordinator/coordinator.yaml [1:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  # "namespace" omitted since ClusterRoles are not namespaced
  name: root
rules:
  - apiGroups: ["*"]
    #
    # at the HTTP level, the name of the resource for accessing Secret
    # objects is "secrets"
    resources: ["*"]
    verbs: ["*"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: coordinator-account
---
apiVersion: rbac.authorization.k8s.io/v1
# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace.
kind: ClusterRoleBinding
metadata:
  name: coordinator-role-binding
subjects:
  - kind: ServiceAccount
    name: coordinator-account
    namespace: default
roleRef:
  kind: ClusterRole
  name: root
  apiGroup: rbac.authorization.k8s.io
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: coordinator
spec:
  selector:
    matchLabels:
      app: coordinator
  replicas: 1 
  template:
    metadata:
      labels:
        app: coordinator
    spec:
      serviceAccountName: coordinator-account
      nodeSelector:
        agentpool: captain
      containers:
        - name: coordinator
          image: IMAGE_PLACE_HOLDER
          resources:
            requests:
              cpu: 1000m
              memory: 1024Mi
            limits:
              cpu: 1000m
              memory: 1024Mi
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Initialize/yaml/coordinator/coordinator_docker.yaml [1:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  # "namespace" omitted since ClusterRoles are not namespaced
  name: root
rules:
  - apiGroups: ["*"]
    #
    # at the HTTP level, the name of the resource for accessing Secret
    # objects is "secrets"
    resources: ["*"]
    verbs: ["*"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: coordinator-account
---
apiVersion: rbac.authorization.k8s.io/v1
# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace.
kind: ClusterRoleBinding
metadata:
  name: coordinator-role-binding
subjects:
  - kind: ServiceAccount
    name: coordinator-account
    namespace: default
roleRef:
  kind: ClusterRole
  name: root
  apiGroup: rbac.authorization.k8s.io
---
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: coordinator
spec:
  selector:
    matchLabels:
      app: coordinator
  replicas: 1 
  template:
    metadata:
      labels:
        app: coordinator
    spec:
      serviceAccountName: coordinator-account
      nodeSelector:
        agentpool: captain
      containers:
        - name: coordinator
          image: IMAGE_PLACE_HOLDER
          resources:
            requests:
              cpu: 1000m
              memory: 1024Mi
            limits:
              cpu: 1000m
              memory: 1024Mi
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



