|
@ -169,6 +169,13 @@ apiServer: |
|
|
audit-log-maxsize: "{{ audit_log_maxsize }}" |
|
|
audit-log-maxsize: "{{ audit_log_maxsize }}" |
|
|
audit-policy-file: {{ audit_policy_file }} |
|
|
audit-policy-file: {{ audit_policy_file }} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{% if kubernetes_audit_webhook %} |
|
|
|
|
|
audit-webhook-config-file: {{ audit_webhook_config_file }} |
|
|
|
|
|
audit-policy-file: {{ audit_policy_file }} |
|
|
|
|
|
audit-webhook-mode: {{ audit_webhook_mode }} |
|
|
|
|
|
audit-webhook-batch-max-size: "{{ audit_webhook_batch_max_size }}" |
|
|
|
|
|
audit-webhook-batch-max-wait: "{{ audit_webhook_batch_max_wait }}" |
|
|
|
|
|
{% endif %} |
|
|
{% for key in kube_kubeadm_apiserver_extra_args %} |
|
|
{% for key in kube_kubeadm_apiserver_extra_args %} |
|
|
{{ key }}: "{{ kube_kubeadm_apiserver_extra_args[key] }}" |
|
|
{{ key }}: "{{ kube_kubeadm_apiserver_extra_args[key] }}" |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
@ -211,7 +218,7 @@ apiServer: |
|
|
hostPath: {{ kube_config_dir }}/webhook-token-auth-config.yaml |
|
|
hostPath: {{ kube_config_dir }}/webhook-token-auth-config.yaml |
|
|
mountPath: {{ kube_config_dir }}/webhook-token-auth-config.yaml |
|
|
mountPath: {{ kube_config_dir }}/webhook-token-auth-config.yaml |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% if kubernetes_audit %} |
|
|
|
|
|
|
|
|
{% if kubernetes_audit or kubernetes_audit_webhook %} |
|
|
- name: {{ audit_policy_name }} |
|
|
- name: {{ audit_policy_name }} |
|
|
hostPath: {{ audit_policy_hostpath }} |
|
|
hostPath: {{ audit_policy_hostpath }} |
|
|
mountPath: {{ audit_policy_mountpath }} |
|
|
mountPath: {{ audit_policy_mountpath }} |
|
|