You can apply any kubernetes .yaml
files via Helm.
-
helm create pwnchart
-
Navigate to
./pwnchart/templates/
-
Create a
.yaml
like a regualar kubernetes yaml, e.g clusterrolebinding.
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kekpwned
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
namespace: {{ .Values.namespace }}
name: {{ .Values.name }}
-
helm package pwnchart
-
Upload
pwnchart-<version>.tgz
to pod and runhelm install pwnchart-<version>.tgz
A demo chart is provided in pwnchart folder
Run
helm package pwnchart
to create a.tgz
archive