# 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 Application: ?: type: com.mirantis.docker.kubernetes.KubernetesPod name: $.appConfiguration.name labels: $.appConfiguration.labels kubernetesCluster: $.appConfiguration.kubernetesCluster replicas: $.appConfiguration.replicas Forms: - appConfiguration: fields: - name: license type: string description: Apache License, Version 2.0 hidden: true required: false - name: name type: string regexpValidator: '^[a-z0-9]([a-z0-9.-]{0,251})?[a-z0-9]$' maxLength: 253 label: Pod Name description: >- Name of the pod to create. This name must be unique throughout the cluster. The name should be up to maximum length of 253 characters and consist of lower case alphanumeric characters, hyphens, and dots. - name: labels type: string #NOTE(ddovbii): this regexp is used here because of k8s restrictions: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/labels.md#syntax-and-character-set regexpValidator: '^(([a-zA-Z0-9]([a-zA-Z0-9\.]{0,251}[a-zA-Z0-9])?\/)?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?)=[A-Za-z0-9][-\w.]{0,63})?(,([a-zA-Z0-9]([a-zA-Z0-9\.]{0,251}[a-zA-Z0-9])?\/)?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?)=[A-Za-z0-9][-\w.]{0,63})*$' label: Labels required: false description: >- Comma separated list of labels. Allows easy selecting in the future. Valid label keys have two segments - prefix and name - separated by a slash. The name segment is required and must be a DNS label 63 characters or less, all lowercase, beginning and ending with an alphanumeric character, with dashes and alphanumerics between. The prefix and slash are optional. If specified, the prefix must be a DNS subdomain. Valid label values must be shorter than 64 characters, accepted characters are ([-A-Za-z0-9_.]) but the first character must be ([A-Za-z0-9]). - name: kubernetesCluster type: com.mirantis.docker.kubernetes.KubernetesCluster label: Kubernetes cluster description: >- Kubernetes service - name: replicas type: integer label: Replicas (0 = disabled) initial: 2 minValue: 0 description: >- Number of cluster Replicas. Setting to '0' prevents Replication Controller creation