30 Ocak 2022 Pazar

Kubernetes metadata Anahtar Kelimesi

Giriş
Genellikle sadece name,namespace gibi şeyler yazılır

annotations Alanı
Açıklaması şöyle
Next, take advantage of Linux kernel security features, such as SELinux, AppArmor (beta since 1.4), and/or seccomp (stable since 1.19). AppArmor defines the permissions for a Linux user or group to confine programs to a limited set of resources. Once an AppArmor profile is defined, pods with AppArmor annotations will enforce those rules.
Örnek
Şöyle yaparız
apiVersion: v1
kind: Pod
metadata:
name: apparmor
annotations:
container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-write
spec:
containers:
- name: hello
  image: busybox
  command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]


Hiç yorum yok:

Yorum Gönder

Cluster Propotional Autoscaler - ReplicaSet Ekler/Siler

Giriş Açıklaması şöyle CPA aims to horizontally scale the number of Pod replicas based on the cluster’s scale. A common example is DNS ser...