This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathship.yaml
93 lines (78 loc) · 2.57 KB
/
ship.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
assets:
v1:
- github:
repo: replicatedhq/replicated-starter-ship
path: /base
dest: ./
source: private
# can be a commit SHA or branch reference, but master is best for quick iteration
ref: master
- github:
repo: replicatedhq/replicated-starter-ship
path: /scripts
dest: ./
source: private
# can be a commit SHA or branch reference, but master is best for quick iteration
ref: master
config:
v1:
- name: nginx
title: nginx settings
items:
- name: nginx_memory
title: Nginx Memory
type: text
default: 100Mi
- name: kubernetes
title: Kubernetes
items:
- name: namespace
title: Namespace
type: text
# change to your app name
default: "default"
lifecycle:
v1:
# custom markdown messaging. Replace `My Cool App` with your app name
- message:
contents: |
# My Cool App Installer
This installer will walk you through setting up a scalable nginx pool for
`My Cool App` that will serve good web content.
# More placeholder messaging
- message:
contents: |
# Prerequisites
- 3 web servers
- 2 SSL certs
- 1 Kubernetes cluster
# collect info according to the `config.v1` section, above
- config:
invalidates: ["render"]
# render assets
- render:
requires: ["config"]
root: .
- message:
contents: |
# Customize your Kubernetes configs
Base kubernetes assets have been generated for deploying `My Cool App` to your kubernetes cluster.
The next step will walk you through adding any last-mile customizations to kubernetes configurations
before deploying them to your cluster.
This will give you an opportunity to customize default configuration values,
and add any additional kubernetes settings in a way that will preserve your
customizations when pulling in upstream updates for `My Cool App`
We recommend reviewing the kubernetes resources and making any tweaks to the defaults,
especially to `config.yaml`.
- kustomizeIntro: {}
- kustomize:
requires: ["render"]
base: ./base
overlay: overlays/ship
dest: rendered.yaml
- message:
id: outro
contents: |
## You're all set!
If you have `kubectl` configured locally, you can deploy `My Cool App` by running
kubectl apply -f rendered.yaml