Services of type LoadBalancer when deployed inside AWS have support for transport encryption if it is enabled via an annotation. This policy requires that Services of type LoadBalancer contain the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert with some value.
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: require-encryption-aws-loadbalancersannotations:policies.kyverno.io/title: Require Encryption with AWS LoadBalancerspolicies.kyverno.io/category: AWS, EKS Best Practicespolicies.kyverno.io/severity: mediumpolicies.kyverno.io/subject: Servicekyverno.io/kyverno-version: 1.7.3, 1.8.0-rc2policies.kyverno.io/minversion: 1.6.0kyverno.io/kubernetes-version: 1.23-1.24policies.kyverno.io/description: Services of type LoadBalancer when deployed inside AWS have support for transport encryption if it is enabled via an annotation. This policy requires that Services of type LoadBalancer contain the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert with some value.spec:validationFailureAction: Auditbackground: truerules:- name: aws-loadbalancer-has-ssl-certmatch:any:- resources:kinds:- Servicevalidate:message: Service of type LoadBalancer must carry the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert.pattern:metadata:annotations:service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "?*"(spec):(type): LoadBalancer
This policy prevents the use of the default project in an Application.
This policy prevents updates to the project field after an Application is created.
This policy ensures that the name of the ApplicationSet is the same value provided in the project.