summaryrefslogtreecommitdiffstats
path: root/src/tools/emcoctl/examples/dcm.yaml
blob: a567491b756e3de6ac152736afcc893eed0e4f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#creating controller entries
version: emco/v2
resourceContext:
  anchor: controllers
metadata :
   name: rsync
spec:
  host: localhost
  port: 9018

---
#creating cluster provider
version: emco/v2
resourceContext:
  anchor: cluster-providers
metadata :
   name: cp-1

---
#creating cluster
version: emco/v2
resourceContext:
  anchor: cluster-providers/cp-1/clusters
metadata :
   name: c1
file:
  # Replace with actual path
  kubeconfig

---
#create project
version: emco/v2
resourceContext:
  anchor: projects
metadata :
   name: proj1

---
#create logical cloud
version: emco/v2
resourceContext:
  anchor: projects/proj1/logical-clouds
metadata:
  name: lc1
spec:
  namespace: ns1
  user:
    user-name: user-1
    type: certificate
    user-permissions:
    - permission-name: permission-1
      apiGroups:
      - ""
      resources:
      - secrets
      - pods
      verbs:
      - get
      - watch
      - list
      - create

---
#create cluster reference
version: emco/v2
resourceContext:
  anchor: projects/proj1/logical-clouds/lc1/cluster-references
metadata:
  name: lc-cl-1
spec:
  cluster-provider: cp-1
  cluster-name: c1
  loadbalancer-ip: "0.0.0.0"

---
#create cluster quotas
version: emco/v2
resourceContext:
  anchor: projects/proj1/logical-clouds/lc1/cluster-quotas
metadata:
    name: quota-1
spec:
    limits.cpu: '400'
    limits.memory: 1000Gi
    requests.cpu: '300'
    requests.memory: 900Gi
    requests.storage: 500Gi
    requests.ephemeral-storage: '500'
    limits.ephemeral-storage: '500'
    persistentvolumeclaims: '500'
    pods: '500'
    configmaps: '1000'
    replicationcontrollers: '500'
    resourcequotas: '500'
    services: '500'
    services.loadbalancers: '500'
    services.nodeports: '500'
    secrets: '500'
    count/replicationcontrollers: '500'
    count/deployments.apps: '500'
    count/replicasets.apps: '500'
    count/statefulsets.apps: '500'
    count/jobs.batch: '500'
    count/cronjobs.batch: '500'
    count/deployments.extensions: '500'