Skip to content

How to Set Kubernetes Elastic Agent Plugin Token ?? #11352

Answered by xlw712
xlw712 asked this question in Q&A
Discussion options

You must be logged in to vote

This is serviceAccount gocd config

apiVersion: v1
kind: ServiceAccount
metadata:
name: gocd
namespace: default
labels:
version: "gocd-22.3.0"
app: "gocd"

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: gocd
namespace: default
labels:
version: "gocd-22.3.0"
app: "gocd"
rules:

  • apiGroups: [""]
    resources:
    • pods
    • pods/log
      verbs: ["*"]
  • apiGroups: [""]
    resources:
    • nodes
      verbs: ["get", "list"]
  • apiGroups: [""]
    resources:
    • events
      verbs: ["list", "watch"]
  • apiGroups: [""]
    resources:
    • namespaces
      verbs: ["get"]

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gocd
namespace: default
labels:
version: "gocd-22.3.0"
app: "gocd"
subjects:

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@chadlwilson
Comment options

@xlw712
Comment options

@chadlwilson
Comment options

Answer selected by xlw712
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #11351 on March 03, 2023 14:10.