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