Coder Social home page Coder Social logo

1.7 support about k8s HOT 6 CLOSED

ericchiang avatar ericchiang commented on May 16, 2024
1.7 support

from k8s.

Comments (6)

JorritSalverda avatar JorritSalverda commented on May 16, 2024

Any update on this? I use version v0.2.0 and have trouble watching/listing secrets, services and ingress objects. They all fail with an error similar to

decode error status: payload is not a kubernetes protobuf object 
panic: runtime error: invalid memory address or nil pointer dereference 
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x990804]

from k8s.

ericchiang avatar ericchiang commented on May 16, 2024

@JorritSalverda this #46?

from k8s.

JorritSalverda avatar JorritSalverda commented on May 16, 2024

@ericchiang indeed with legacy authorization enabled it works fine. I'll try and fix my rbac roles so i can disable abac. Thanks for pointing that out.

from k8s.

justinliew avatar justinliew commented on May 16, 2024

I'm getting the same decode error status: payload is not a kubernetes protobuf object error when trying to create pods in AWS.
If I'm using RBAC, how do I specify the service account when calling kubeClient.CoreV1().CreatePod()?

Thanks!

from k8s.

etiennetremel avatar etiennetremel commented on May 16, 2024

@justinliew I would suggest you to read this section about RBAC:
https://kubernetes.io/docs/admin/authorization/rbac/#service-account-permissions

Something similar to this should be enough depending on your requirements:

# define role
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
  name: my-cluster-role
rules:
- apiGroups: [""] 
  resources:
  - pods
  verbs:
  - create
---
# apply role to service account
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: my-cluster-role-binding
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: my-cluster-role
subjects:
- kind: ServiceAccount
  name: my-service-account
  namespace: my-namespace

Hope that help.

from k8s.

justinliew avatar justinliew commented on May 16, 2024

Thanks Etienne. That helped and also realizing that I needed to specify the appropriate service account names when launching the parent pod vs. the child pod.

from k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.