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 | |
Zack Williams | d9d6b35 | 2018-10-05 07:53:30 -0700 | [diff] [blame] | 25 | # tosca loader container |
| 26 | image: |
| 27 | repository: 'xosproject/tosca-loader' |
| 28 | tag: '{{ .Chart.AppVersion }}' |
| 29 | pullPolicy: 'Always' |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 30 | |
Zack Williams | d9d6b35 | 2018-10-05 07:53:30 -0700 | [diff] [blame] | 31 | global: |
| 32 | registry: "" |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 33 | |
| 34 | xosAdminUser: "admin@opencord.org" |
| 35 | xosAdminPassword: "letmein" |
| 36 | |
| 37 | # TOSCA recipes for the tosca-loader |
| 38 | toscaRecipes: |
| 39 | fixtures: |
| 40 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 41 | description: Some basic fixtures |
| 42 | imports: |
| 43 | - custom_types/siterole.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 44 | - custom_types/networkparametertype.yaml |
| 45 | - custom_types/networktemplate.yaml |
| 46 | topology_template: |
| 47 | node_templates: |
| 48 | # ----------------------------------------------------------------------------- |
| 49 | # Network Parameter Types |
| 50 | # ----------------------------------------------------------------------------- |
| 51 | s_tag: |
| 52 | type: tosca.nodes.NetworkParameterType |
| 53 | properties: |
| 54 | name: s_tag |
| 55 | c_tag: |
| 56 | type: tosca.nodes.NetworkParameterType |
| 57 | properties: |
| 58 | name: c_tag |
| 59 | next_hop: |
| 60 | type: tosca.nodes.NetworkParameterType |
| 61 | properties: |
| 62 | name: next_hop |
| 63 | device: |
| 64 | type: tosca.nodes.NetworkParameterType |
| 65 | properties: |
| 66 | name: device |
| 67 | bridge: |
| 68 | type: tosca.nodes.NetworkParameterType |
| 69 | properties: |
| 70 | name: bridge |
| 71 | neutron_port_name: |
| 72 | type: tosca.nodes.NetworkParameterType |
| 73 | properties: |
| 74 | name: neutron_port_name |
| 75 | # ---------------------------------------------------------------------------- |
| 76 | # Roles |
| 77 | # ---------------------------------------------------------------------------- |
| 78 | siterole#admin: |
| 79 | type: tosca.nodes.SiteRole |
| 80 | properties: |
| 81 | role: admin |
| 82 | siterole#pi: |
| 83 | type: tosca.nodes.SiteRole |
| 84 | properties: |
| 85 | role: pi |
| 86 | siterole#tech: |
| 87 | type: tosca.nodes.SiteRole |
| 88 | properties: |
| 89 | role: tech |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 90 | # ----------------------------------------------------------------------------- |
| 91 | # Network Templates |
| 92 | # ----------------------------------------------------------------------------- |
| 93 | Private: |
| 94 | type: tosca.nodes.NetworkTemplate |
| 95 | properties: |
| 96 | name: Private |
| 97 | visibility: private |
| 98 | translation: none |
| 99 | Public shared IPv4: |
| 100 | type: tosca.nodes.NetworkTemplate |
| 101 | properties: |
| 102 | name: Public shared IPv4 |
| 103 | visibility: private |
| 104 | translation: NAT |
| 105 | shared_network_name: nat-net |
| 106 | Public dedicated IPv4: |
| 107 | type: tosca.nodes.NetworkTemplate |
| 108 | properties: |
| 109 | name: Public dedicated IPv4 |
| 110 | visibility: public |
| 111 | translation: none |
| 112 | shared_network_name: ext-net |
| 113 | |
| 114 | deployment: |
| 115 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 116 | imports: |
| 117 | - custom_types/deployment.yaml |
| 118 | description: deployment config, generated by platform-install |
| 119 | topology_template: |
| 120 | node_templates: |
| 121 | MyDeployment: |
| 122 | type: tosca.nodes.Deployment |
| 123 | properties: |
| 124 | name: MyDeployment |
| 125 | |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 126 | cordServices: |
| 127 | tosca_definitions_version: tosca_simple_yaml_1_0 |
Scott Baker | ba2c220 | 2018-06-11 10:04:28 -0700 | [diff] [blame] | 128 | description: Set up Kubernetes Service |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 129 | imports: |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 130 | - custom_types/kubernetesservice.yaml |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 131 | - custom_types/trustdomain.yaml |
| 132 | topology_template: |
| 133 | node_templates: |
| 134 | default_trustdomain: |
| 135 | type: tosca.nodes.TrustDomain |
| 136 | properties: |
| 137 | name: "default" |
| 138 | requirements: |
| 139 | - owner: |
| 140 | node: service#kubernetes |
| 141 | relationship: tosca.relationships.BelongsToOne |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 142 | service#kubernetes: |
| 143 | type: tosca.nodes.KubernetesService |
| 144 | properties: |
| 145 | name: kubernetes |
Scott Baker | 22e46b7 | 2018-05-07 09:06:53 -0700 | [diff] [blame] | 146 | |
| 147 | serviceGraphConstraints: |
| 148 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 149 | imports: |
| 150 | - custom_types/servicegraphconstraint.yaml |
| 151 | description: Constraints on the Services position in the graph |
| 152 | topology_template: |
| 153 | node_templates: |
| 154 | constraints: |
| 155 | type: tosca.nodes.ServiceGraphConstraint |
| 156 | properties: |
Scott Baker | ba2c220 | 2018-06-11 10:04:28 -0700 | [diff] [blame] | 157 | constraints: '[]' |