forked from getporter/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathporter.yaml
44 lines (39 loc) · 968 Bytes
/
porter.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
schemaVersion: 1.0.0-alpha.1
name: examples/gke
version: 0.2.0
description: "An example Porter bundle with Kubernetes"
registry: ghcr.io/getporter
dockerfile: Dockerfile.tmpl
credentials:
- name: kubeconfig
path: /home/nonroot/.kube/config
- name: google-service-account
path: /home/nonroot/google-service-account.json
mixins:
- exec
- kubernetes
install:
- kubernetes:
description: "Create NGINX Deployment"
manifests:
- manifests/nginx
wait: true
outputs:
- name: IP_ADDRESS
resourceType: service
resourceName: nginx-deployment
jsonPath: "{.spec.clusterIP}"
- exec:
description: "Echo the IP Address"
command: ./helpers.sh
arguments:
- "dump-ip {{bundle.outputs.IP_ADDRESS}}"
uninstall:
- kubernetes:
description: "Uninstall Hello World"
manifests:
- manifests/nginx
wait: true
outputs:
- name: IP_ADDRESS
type: string