2021-02-22 13:41:32 +00:00
|
|
|
{{- if eq .Values.platform "aws" }}
|
2021-03-11 08:00:47 +00:00
|
|
|
# Controller role for consistency, similar to kubeadm admin.conf
|
2021-02-12 11:04:16 +00:00
|
|
|
apiVersion: iamauthenticator.k8s.aws/v1alpha1
|
|
|
|
kind: IAMIdentityMapping
|
|
|
|
metadata:
|
|
|
|
name: kubezero-controllers
|
|
|
|
spec:
|
|
|
|
arn: {{ .Values.ControllerIamRole }}
|
|
|
|
username: kubezero-controller
|
|
|
|
groups:
|
|
|
|
- system:masters
|
|
|
|
|
|
|
|
---
|
2021-03-11 08:00:47 +00:00
|
|
|
# Worker role to eg. delete during terminate
|
2021-02-12 11:04:16 +00:00
|
|
|
apiVersion: iamauthenticator.k8s.aws/v1alpha1
|
|
|
|
kind: IAMIdentityMapping
|
|
|
|
metadata:
|
|
|
|
name: kubezero-workers
|
|
|
|
spec:
|
|
|
|
arn: {{ .Values.WorkerIamRole }}
|
|
|
|
username: kubezero-worker
|
|
|
|
groups:
|
|
|
|
- system:masters
|
|
|
|
|
|
|
|
---
|
|
|
|
# Admin Role for remote access
|
|
|
|
apiVersion: iamauthenticator.k8s.aws/v1alpha1
|
|
|
|
kind: IAMIdentityMapping
|
|
|
|
metadata:
|
|
|
|
name: kubernetes-admin
|
|
|
|
spec:
|
|
|
|
arn: {{ .Values.kubeAdminRole }}
|
|
|
|
username: kubernetes-admin
|
|
|
|
groups:
|
|
|
|
- system:masters
|
2021-02-22 13:41:32 +00:00
|
|
|
{{- end }}
|