This is a kubernetes mixin for Porter. It executes the
appropriate helm command based on which action it is included within: install
,
upgrade
, or delete
.
porter mixin install kubernetes
porter mixin install kubernetes --version canary --url https://cdn.porter.sh/mixins/kubernetes
porter mixin install kubernetes --feed-url https://cdn.porter.sh/mixins/atom.xml
porter mixin install kubernetes --version $VERSION --url https://github.com/getporter/kubernetes-mixin/releases/download
- kubernetes:
clientVersion: v1.15.5
install:
- kubernetes:
description: "Install Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
upgrade:
- kubernetes:
description: "Upgrade Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
uninstall:
- kubernetes:
description: "Uninstall Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
The mixin supports extracting resource metadata from Kubernetes as outputs.
outputs:
- name: NAME
resourceType: RESOURCE_TYPE
resourceName: RESOURCE_TYPE_NAME
namespace: NAMESPACE
jsonPath: JSON_PATH_DEFINITION