-
Notifications
You must be signed in to change notification settings - Fork 15
/
configurations.yaml
123 lines (122 loc) · 4.19 KB
/
configurations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Copyright 2020 Google LLC
#
# 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.
# DeploymentManagerTemplate specifies the location that a deployment manager
# template is generated when `mpdev apply` is invoked
apiVersion: dev.marketplace.cloud.google.com/v1alpha1
kind: DeploymentManagerTemplate
metadata:
name: dmtemplate
deploymentManagerRef:
group: dev.marketplace.cloud.google.com
kind: DeploymentManagerAutogenTemplate
name: autogen
zipFilePath: template.zip # {"$kpt-set":"zipPath"}
---
# DeploymentManagerAutogenTemplate auto-generates a deployment manager template
# that can be deployed using `gcloud deployments create ...`
apiVersion: dev.marketplace.cloud.google.com/v1alpha1
kind: DeploymentManagerAutogenTemplate
metadata:
name: autogen
spec:
# See https://pkg.go.dev/github.com/GoogleCloudPlatform/marketplace-tools/mpdev/internal/apply?tab=doc#PackageInfo
packageInfo:
version: '1.2.0'
osInfo:
name: Debian
version: '9.12'
components:
- name: Wordpress
version: '5.4.2'
# See https://github.com/GoogleCloudPlatform/marketplace-tools/docs/autogen-reference.md
# for explanation of fields
deploymentSpec:
singleVm:
applicationStatus:
type: WAITER
waiter:
waiterTimeoutSecs: 300
bootDisk:
diskSize:
defaultSizeGb: 10
minSizeGb: 10
diskType:
defaultType: pd-standard
gceMetadataItems:
- key: installphpmyadmin
valueFromDeployInputField: installphpmyadmin
- key: wordpress-admin-email
valueFromDeployInputField: adminEmailAddress
deployInput:
sections:
- fields:
- name: adminEmailAddress
required: true
emailBox:
validation:
regex: ^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+@[a-zA-Z0-9](?:[a-zA-Z0-9]?[.-]?[a-zA-Z0-9]+)+[[a-zA-Z0-9]{1}$
title: Administrator e-mail address
tooltip: The e-mail address used to create the administrator account for
WordPress.
- name: installphpmyadmin
title: Install phpMyAdmin
description: phpMyAdmin is an open source tool to administer MySQL databases
with the use of a web browser.
booleanCheckbox:
default_value: true
placement: MAIN
firewallRules:
- port: '80'
protocol: TCP
- defaultOff: true
port: '443'
protocol: TCP
images:
- name: imageName # {"$ref":"#/definitions/io.k8s.cli.setters.image"}
project: projectId # {"$ref":"#/definitions/io.k8s.cli.setters.projectId"}
machineType:
defaultMachineType:
gceMachineType: g1-small
networkInterfaces:
minCount: 1
maxCount: 8
passwords:
- allowSpecialChars: false
displayLabel: WordPress MySQL
length: 8
metadataKey: wordpress-mysql-password
username: wordpress
- allowSpecialChars: false
displayLabel: MySQL root
length: 14
metadataKey: mysql-root-password
username: root
- allowSpecialChars: true
displayLabel: WordPress Admin
length: 8
metadataKey: wordpress-admin-password
usernameFromDeployInputField: adminEmailAddress
postDeploy:
actionItems:
- heading: Access the phpMyAdmin web interface
description: Visit <a href="http://{{ externalIp(outputs().vmSelfLink) }}/phpmyadmin">http://{{
externalIp(outputs().vmSelfLink) }}/phpmyadmin</a>
showIf:
booleanDeployInputField:
name: installphpmyadmin
stackdriver:
logging:
defaultOn: false
monitoring:
defaultOn: false