Welcome to the Linux Foundation Forum!

Lab exercise 16.2 cannot be completed due to a potentially missing step

nitibhatt
nitibhatt Posts: 3
edited February 2018 in LFS258 Class Forum

 While doing lab exercise 16.2 (Authentication and authorization),  the below step even after creating a Role and Role binding

kubectl --context=DevDan-context get pods

Error from server (Forbidden): pods is forbidden: User "DevDan"

cannot list pods in the namespace "development"

Any clues?

 

Thanks,

Niti

Comments

  • sameerp16
    sameerp16 Posts: 4

    Exercise: 15.2 Lab 15.2. Authentication and Authorization
    OPTIONAL CHALLENGE STEP:Become theDevDanuser. Solve any missing configuration errors. Try to createa deployment in thedevelopmentand theproductionnamespaces. Do the errors look the same? Configure asnecessary to only have two contexts available to DevDan

    DevDan@ip-172-31-9-152:/$ kubectl config get-contexts
    CURRENT NAME CLUSTER AUTHINFO NAMESPACE

    **There is no contexts for user DevDan - What am missing here ? **

    DevDan@ip-172-31-9-152:/$ kubectl config view
    apiVersion: v1
    clusters: null
    contexts: null
    current-context: ""
    kind: Config
    preferences: {}
    users: null

  • sameerp16
    sameerp16 Posts: 4

    So is this the expected output? or what command will work here to view the context for user=DevDan?

Categories

Upcoming Training