kubernetes mixin
Manage a set of Kubernetes manifests using the kubectl CLI.
Source: https://github.com/getporter/kubernetes-mixin
Install or Upgrade
porter mixin install kubernetes
Install or Upgrade canary version
porter mixin install kubernetes --version canary --url https://cdn.porter.sh/mixins/kubernetes
Install or Upgrade from feed-url
porter mixin install kubernetes --feed-url https://cdn.porter.sh/mixins/atom.xml
Manually Install or Upgrade with a specific version from github
porter mixin install kubernetes --version $VERSION --url https://github.com/getporter/kubernetes-mixin/releases/download
Examples
Mixin Configuration
Kubernetes client version
- kubernetes:
clientVersion: v1.15.5
Mixin Actions Syntax
Install Action
install:
- kubernetes:
description: "Install Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
Install Upgrade Action
upgrade:
- kubernetes:
description: "Upgrade Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
Uninstall Action
uninstall:
- kubernetes:
description: "Uninstall Hello World App"
manifests:
- /cnab/app/manifests/hello
wait: true
Outputs
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