blob: 852114047d536c2179f7249524fc6330aa11ca8b [file] [log] [blame]
Scott Baker22e46b72018-05-07 09:06:53 -07001---
2# Copyright 2018-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Scott Baker25ae3952018-06-07 15:10:48 -070016# Default values for the base-kubernetes profile.
Scott Baker22e46b72018-05-07 09:06:53 -070017# This is a YAML-formatted file.
18# Declare variables to be passed into your templates.
19
20replicaCount: 1
21
22nameOverride: ""
23fullnameOverride: ""
24
25imagePullPolicy: 'IfNotPresent'
26
Zack Williams0e094e82018-07-06 12:38:51 -070027tosca_loaderImage: "xosproject/tosca-loader:1.0.1"
Scott Baker22e46b72018-05-07 09:06:53 -070028
29xosAdminUser: "admin@opencord.org"
30xosAdminPassword: "letmein"
31
32# TOSCA recipes for the tosca-loader
33toscaRecipes:
34 fixtures:
35 tosca_definitions_version: tosca_simple_yaml_1_0
36 description: Some basic fixtures
37 imports:
38 - custom_types/siterole.yaml
Scott Baker22e46b72018-05-07 09:06:53 -070039 - custom_types/networkparametertype.yaml
40 - custom_types/networktemplate.yaml
41 topology_template:
42 node_templates:
43 # -----------------------------------------------------------------------------
44 # Network Parameter Types
45 # -----------------------------------------------------------------------------
46 s_tag:
47 type: tosca.nodes.NetworkParameterType
48 properties:
49 name: s_tag
50 c_tag:
51 type: tosca.nodes.NetworkParameterType
52 properties:
53 name: c_tag
54 next_hop:
55 type: tosca.nodes.NetworkParameterType
56 properties:
57 name: next_hop
58 device:
59 type: tosca.nodes.NetworkParameterType
60 properties:
61 name: device
62 bridge:
63 type: tosca.nodes.NetworkParameterType
64 properties:
65 name: bridge
66 neutron_port_name:
67 type: tosca.nodes.NetworkParameterType
68 properties:
69 name: neutron_port_name
70 # ----------------------------------------------------------------------------
71 # Roles
72 # ----------------------------------------------------------------------------
73 siterole#admin:
74 type: tosca.nodes.SiteRole
75 properties:
76 role: admin
77 siterole#pi:
78 type: tosca.nodes.SiteRole
79 properties:
80 role: pi
81 siterole#tech:
82 type: tosca.nodes.SiteRole
83 properties:
84 role: tech
Scott Baker22e46b72018-05-07 09:06:53 -070085 # -----------------------------------------------------------------------------
86 # Network Templates
87 # -----------------------------------------------------------------------------
88 Private:
89 type: tosca.nodes.NetworkTemplate
90 properties:
91 name: Private
92 visibility: private
93 translation: none
94 Public shared IPv4:
95 type: tosca.nodes.NetworkTemplate
96 properties:
97 name: Public shared IPv4
98 visibility: private
99 translation: NAT
100 shared_network_name: nat-net
101 Public dedicated IPv4:
102 type: tosca.nodes.NetworkTemplate
103 properties:
104 name: Public dedicated IPv4
105 visibility: public
106 translation: none
107 shared_network_name: ext-net
108
109 deployment:
110 tosca_definitions_version: tosca_simple_yaml_1_0
111 imports:
112 - custom_types/deployment.yaml
113 description: deployment config, generated by platform-install
114 topology_template:
115 node_templates:
116 MyDeployment:
117 type: tosca.nodes.Deployment
118 properties:
119 name: MyDeployment
120
Scott Baker22e46b72018-05-07 09:06:53 -0700121 cordServices:
122 tosca_definitions_version: tosca_simple_yaml_1_0
Scott Bakerba2c2202018-06-11 10:04:28 -0700123 description: Set up Kubernetes Service
Scott Baker22e46b72018-05-07 09:06:53 -0700124 imports:
Scott Baker22e46b72018-05-07 09:06:53 -0700125 - custom_types/kubernetesservice.yaml
Scott Baker22e46b72018-05-07 09:06:53 -0700126 - custom_types/trustdomain.yaml
127 topology_template:
128 node_templates:
129 default_trustdomain:
130 type: tosca.nodes.TrustDomain
131 properties:
132 name: "default"
133 requirements:
134 - owner:
135 node: service#kubernetes
136 relationship: tosca.relationships.BelongsToOne
Scott Baker22e46b72018-05-07 09:06:53 -0700137 service#kubernetes:
138 type: tosca.nodes.KubernetesService
139 properties:
140 name: kubernetes
Scott Baker22e46b72018-05-07 09:06:53 -0700141
142 serviceGraphConstraints:
143 tosca_definitions_version: tosca_simple_yaml_1_0
144 imports:
145 - custom_types/servicegraphconstraint.yaml
146 description: Constraints on the Services position in the graph
147 topology_template:
148 node_templates:
149 constraints:
150 type: tosca.nodes.ServiceGraphConstraint
151 properties:
Scott Bakerba2c2202018-06-11 10:04:28 -0700152 constraints: '[]'