Difference between revisions of "Kind: ServiceAccount"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{lc}} | + | {{lc}}<code>[[kind:]] [[ServiceAccount]]</code> [https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ ref] |
− | + | ||
+ | |||
+ | cat >my-service-account.yaml <<EOF | ||
+ | apiVersion: v1 | ||
+ | kind: ServiceAccount | ||
+ | metadata: | ||
+ | name: my-service-account | ||
+ | namespace: default | ||
+ | EOF | ||
+ | [[kubectl apply -f]] my-service-account.yaml | ||
Line 15: | Line 24: | ||
annotations: | annotations: | ||
eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/AmazonEKSLoadBalancerControllerRole | eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/AmazonEKSLoadBalancerControllerRole | ||
+ | |||
+ | |||
+ | kubectl apply -f aws-load-balancer-controller-service-account.yaml | ||
+ | serviceaccount/aws-load-balancer-controller created | ||
== Related == | == Related == | ||
* <code>[[serviceAccountName]]</code> | * <code>[[serviceAccountName]]</code> | ||
* <code>[[kind: Pod]]</code> | * <code>[[kind: Pod]]</code> | ||
+ | * [[AWS Load Balancer Controller]] | ||
+ | * [[Service account]]: [[Kubernetes service account]] | ||
+ | * [[ServiceAccount admission controller]] | ||
== See also == | == See also == |
Latest revision as of 14:42, 22 May 2024
cat >my-service-account.yaml <<EOF apiVersion: v1 kind: ServiceAccount metadata: name: my-service-account namespace: default EOF kubectl apply -f my-service-account.yaml
apiVersion: v1 kind: ServiceAccount metadata: labels: app.kubernetes.io/component: controller app.kubernetes.io/name: aws-load-balancer-controller name: aws-load-balancer-controller namespace: kube-system annotations: eks.amazonaws.com/role-arn: arn:aws:iam::111122223333:role/AmazonEKSLoadBalancerControllerRole
kubectl apply -f aws-load-balancer-controller-service-account.yaml serviceaccount/aws-load-balancer-controller created
Related[edit]
serviceAccountName
kind: Pod
- AWS Load Balancer Controller
- Service account: Kubernetes service account
- ServiceAccount admission controller
See also[edit]
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
Advertising: