summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/emco/examples/prerequisites.yaml
blob: a44546e049a75a47fbd550acba8ff91267304dfd (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
106
107
108
109
110
111
112
113
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation

---
#create project
version: emco/v2
resourceContext:
  anchor: projects
metadata :
   name: {{ .ProjectName }}
---
#creating controller entries
version: emco/v2
resourceContext:
  anchor: controllers
metadata :
   name: rsync
spec:
  host:  {{ .HostIP }}
  port: {{ .RsyncPort }}

---
#creating controller entries
version: emco/v2
resourceContext:
  anchor: controllers
metadata :
   name: gac
spec:
  host:  {{ .HostIP }}
  port: {{ .GacPort }}
  type: "action"
  priority: 1

---
#creating controller entries
version: emco/v2
resourceContext:
  anchor: controllers
metadata :
  name: ovnaction
spec:
  host: {{ .HostIP }}
  port: {{ .OvnPort }}
  type: "action"
  priority: 1

---
#creating controller entries
version: emco/v2
resourceContext:
  anchor: controllers
metadata :
  name: dtc
spec:
  host: {{ .HostIP }}
  port: {{ .DtcPort }}
  type: "action"
  priority: 1

---
#creating cluster provider
version: emco/v2
resourceContext:
  anchor: cluster-providers
metadata :
   name: {{ .ClusterProvider }}

---
#creating cluster
version: emco/v2
resourceContext:
  anchor: cluster-providers/{{ .ClusterProvider }}/clusters
metadata :
   name: {{ .Cluster1 }}
file:
  {{ .KubeConfig }}

---
#Add label cluster
version: emco/v2
resourceContext:
  anchor: cluster-providers/{{ .ClusterProvider }}/clusters/{{ .Cluster1 }}/labels
label-name: {{ .ClusterLabel }}

---
#create default logical cloud with admin permissions
version: emco/v2
resourceContext:
  anchor: projects/{{ .ProjectName }}/logical-clouds
metadata:
  name: {{ .LogicalCloud }}
spec:
  level: "0"

---
#add cluster reference to logical cloud
version: emco/v2
resourceContext:
  anchor: projects/{{ .ProjectName }}/logical-clouds/{{ .LogicalCloud }}/cluster-references
metadata:
  name: lc-cl-1
spec:
  cluster-provider: {{ .ClusterProvider }}
  cluster-name: {{ .Cluster1 }}
  loadbalancer-ip: "0.0.0.0"

---
#instantiate logical cloud
version: emco/v2
resourceContext:
  anchor: projects/{{ .ProjectName }}/logical-clouds/{{ .LogicalCloud }}/instantiate