492ec6e097
io.murano.apps -> com.mirantis for k8s applications, io.murano.apps -> com.example for example applications. bp fix-fqn-usage Change-Id: I7061b48ebcc5c33b96a14cfabb982d709f8b709d
84 lines
2.5 KiB
YAML
84 lines
2.5 KiB
YAML
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
Version: 2
|
|
Templates:
|
|
guestBookHost:
|
|
?:
|
|
type: com.mirantis.docker.kubernetes.KubernetesPod
|
|
name: frontend
|
|
labels: 'name=frontend,app=frontend,uses=redis-slave-or-redis-master'
|
|
kubernetesCluster: $.appConfiguration.kubernetesCluster
|
|
replicas: 3
|
|
|
|
redisSlaveHost:
|
|
?:
|
|
type: com.mirantis.docker.kubernetes.KubernetesPod
|
|
name: 'redis-slave'
|
|
labels: 'name=redis-slave,app=redis,uses=redis-master'
|
|
kubernetesCluster: $.appConfiguration.kubernetesCluster
|
|
replicas: 2
|
|
|
|
redisMaster:
|
|
?:
|
|
type: com.example.docker.DockerRedis
|
|
name: RedisMaster
|
|
host:
|
|
?:
|
|
type: com.mirantis.docker.kubernetes.KubernetesPod
|
|
name: 'redis-master'
|
|
labels: 'name=redis-master,app=redis'
|
|
kubernetesCluster: $.appConfiguration.kubernetesCluster
|
|
replicas: 1
|
|
publish: false
|
|
|
|
|
|
Application:
|
|
?:
|
|
type: com.example.docker.DockerGuestBook
|
|
name: $.appConfiguration.name
|
|
host: $guestBookHost
|
|
redisMaster: $redisMaster
|
|
|
|
redisSlaveHost: $redisSlaveHost
|
|
publish: $.appConfiguration.publish
|
|
|
|
|
|
Forms:
|
|
- appConfiguration:
|
|
fields:
|
|
- name: license
|
|
type: string
|
|
description: Apache License, Version 2.0
|
|
hidden: true
|
|
required: false
|
|
- name: name
|
|
type: string
|
|
label: Application Name
|
|
initial: 'GuestBook'
|
|
description: >-
|
|
Enter a desired name for the application. Just A-Z, a-z, 0-9, dash and
|
|
underline are allowed
|
|
- name: kubernetesCluster
|
|
type: com.mirantis.docker.kubernetes.KubernetesCluster
|
|
label: Kubernetes cluster
|
|
required: true
|
|
description: >-
|
|
Kubernetes service
|
|
- name: publish
|
|
type: boolean
|
|
label: Visible from outside
|
|
initial: true
|
|
required: false
|
|
description: >-
|
|
Check if you intend to access application from the Internet
|