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: v1kind: Podmetadata:name: apparmorannotations:container.apparmor.security.beta.kubernetes.io/hello: localhost/k8s-apparmor-example-deny-writespec:containers:- name: helloimage: busyboxcommand: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]
Hiç yorum yok:
Yorum Gönder