Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 1 | --- |
| 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 Baker | 25ae395 | 2018-06-07 15:10:48 -0700 | [diff] [blame] | 16 | # Default values for the base-kubernetes profile. |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 17 | # This is a YAML-formatted file. |
| 18 | # Declare variables to be passed into your templates. |
| 19 | |
| 20 | replicaCount: 1 |
| 21 | |
| 22 | nameOverride: "" |
| 23 | fullnameOverride: "" |
| 24 | |
| 25 | imagePullPolicy: 'IfNotPresent' |
| 26 | |
Zack Williams | 0e094e8 | 2018-07-06 12:38:51 -0700 | [diff] [blame] | 27 | tosca_loaderImage: "xosproject/tosca-loader:1.0.1" |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 28 | |
| 29 | xosAdminUser: "admin@opencord.org" |
| 30 | xosAdminPassword: "letmein" |
| 31 | |
| 32 | # TOSCA recipes for the tosca-loader |
| 33 | toscaRecipes: |
| 34 | fixtures: |
| 35 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 36 | description: Some basic fixtures |
| 37 | imports: |
| 38 | - custom_types/siterole.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 39 | - 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 Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 85 | # ----------------------------------------------------------------------------- |
| 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 Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 121 | cordServices: |
| 122 | tosca_definitions_version: tosca_simple_yaml_1_0 |
Scott Baker | ba2c220 | 2018-06-11 10:04:28 -0700 | [diff] [blame] | 123 | description: Set up Kubernetes Service |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 124 | imports: |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 125 | - custom_types/kubernetesservice.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 126 | - 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 Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 137 | service#kubernetes: |
| 138 | type: tosca.nodes.KubernetesService |
| 139 | properties: |
| 140 | name: kubernetes |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 141 | |
| 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 Baker | ba2c220 | 2018-06-11 10:04:28 -0700 | [diff] [blame] | 152 | constraints: '[]' |