Kubernetes Security - Open Policy Agent - OPA Gatekeeper - 12

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 30

  • @Neosam01
    @Neosam01 2 роки тому +1

    Very userful and simply explained....good one

  • @TheAmritaSingh
    @TheAmritaSingh 2 роки тому

    Very informative and useful lecture, cheers :)

  • @AmitPawar-oe4nm
    @AmitPawar-oe4nm Рік тому

    nice and informational session.. keep up the good work..

  • @inbox.amitraj
    @inbox.amitraj Рік тому

    very nicely explained.

  • @Veera945
    @Veera945 10 днів тому

    Very much useful video,
    Brother i need some information on how can we setup opa policy for creating a minimum of two pods

    • @learnwithgvr
      @learnwithgvr  10 днів тому

      Yes possible, you need to setup on every deployment, should have min 2 pods. see below yaml. hope this helps
      ----------------------------------
      apiVersion: gatekeeper.sh/v1beta1
      kind: ConstraintTemplate
      metadata:
      name: minimum-pods
      spec:
      crd:
      name: minimumpods
      namespace: gatekeeper-system
      targets:
      - target: deployment
      parameters:
      - name: minPods
      type: integer
      ----------------------------------
      apiVersion: gatekeeper.sh/v1beta1
      kind: Constraint
      metadata:
      name: enforce-minimum-pods
      spec:
      template:
      name: minimum-pods
      parameters:
      - name: minPods
      value: 2

  • @MrSuriyam
    @MrSuriyam Рік тому

    Thank you so much sir once again..appreciate it.

    • @learnwithgvr
      @learnwithgvr  Рік тому

      Thank you Sathish. Pls like share and subscribe. Keep learning

  • @viethhh
    @viethhh Рік тому

    Thank for your sharing, cheer :)

  • @vinayayinapurapu
    @vinayayinapurapu 13 днів тому

    how to clean up the OPA CRD Constraint template to get back cluster to initial state? Just want to get cluster at original state without OPA gatekeeper and constraints.

    • @learnwithgvr
      @learnwithgvr  10 днів тому +1

      first find all using k api-resources, then is remove all Constraints, ConstraintTemplates

  • @Gigglesguru2021
    @Gigglesguru2021 6 місяців тому

    Hi brother i need some information on how can we setup opa policy for externalname services that fails if a service is created of type externalname with port name that doesn't follow the istio convention

  • @tamiselvan3993
    @tamiselvan3993 2 роки тому +1

    Is that any reference for container resource limit memory condition based gatekeeper policy
    Like my container not exceed to 16 gb memory allocation

    • @learnwithgvr
      @learnwithgvr  2 роки тому

      For that various options...
      1st you can set resource limits in clusters and namespace level.
      2nd using Admission controller - validating webhook
      3rd using OPA, you need to configure configmaps in Rego language to achieve that.
      Also other ways aswell have to explore.
      1st approach is simple and easy.

  • @sameeshoncloud9
    @sameeshoncloud9 Рік тому

    do i need to install OPA gatekeeper on each and every cluster individually or is there any automated way to do that

    • @learnwithgvr
      @learnwithgvr  Рік тому +1

      Yes need to install in each cluster, in order to automate this...its seperete topic...you can use various approaches like shell or ansible or gitops etc there are other ways too. Depends on your use case/setup

  • @vinaydeep557
    @vinaydeep557 14 днів тому

    Is OPA documentation allowed during exam?

    • @learnwithgvr
      @learnwithgvr  14 днів тому

      Not allowed bro...see here list of sites allowed during exam
      docs.linuxfoundation.org/tc-docs/certification/certification-resources-allowed#certified-kubernetes-administrator-cka-and-certified-kubernetes-application-developer-ckad-and-certified-kubernetes-security-specialist-cks

  • @shamstabrez2986
    @shamstabrez2986 Рік тому

    so brother u wanna say k jaise hi i will create constraint template it will create a custom resource rit

    • @learnwithgvr
      @learnwithgvr  Рік тому

      yes correct, try to understand the entire concept.

    • @shamstabrez2986
      @shamstabrez2986 Рік тому

      @@learnwithgvr yes brother as I have told u earlier tht u r making awesome videos hoping for more content like on argocd, kubernetes networking

    • @learnwithgvr
      @learnwithgvr  Рік тому

      Thank you, will try my best

  • @shamstabrez2986
    @shamstabrez2986 2 роки тому +1

    ye thoda complicated hogaya

    • @learnwithgvr
      @learnwithgvr  2 роки тому

      Cks has complicated topics...need efforts

    • @shamstabrez2986
      @shamstabrez2986 2 роки тому

      @@learnwithgvr yes brother i know dats y i chose ur channel to get understand u made it smple n easy bs ye opa bhari pad gaya