Skip to content

Repository files navigation

KSC preparaion

Simulator killer.sh https://killercoda.com/killer-shell-cks/scenario/apiserver-crash

Page for exam

  • change encrypt
    • Don't forget mount /volume + VolumeMount
    • use echo -n -n to generate valid secret key
    • check errors by 'crictl ps' + api server manifest
    • reencrypt kubectl get secrets -n your-namespace -o json | kubectl replace -f -
  • admission-controller
    • config files are personal and mounts inside container
    • Special config
...
kind: AdmissionConfiguration
...
    • Custom format: Config, especially server:
 server: https://images.example.com/policy # URL of remote service to query. Must use 'https'.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: np
  namespace: space2
spec:
  podSelector: {}
  policyTypes:
  - Ingress
  ingress:
  - from:
    - namespaceSelector:
        #matchLabels:
        # kubernetes.io/metadata.name: space1
        matchExpressions:
        - key: kubernetes.io/metadata.name #See this key
          operator: In
          values: ["space1", "backend"]

About

Kubernetes Security Certification prepareation

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors