Fix audit-policies deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0c49098177
commit
743684edd4
3 changed files with 12 additions and 4 deletions
|
|
@ -133,18 +133,21 @@
|
|||
|
||||
- name: Secure etcd directory
|
||||
file:
|
||||
path: "/var/lib/etcd"
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
with_items:
|
||||
- "/var/lib/etcd"
|
||||
- "/etc/kubernetes/policies"
|
||||
when:
|
||||
- kubernetes_master|bool
|
||||
|
||||
- name: Configure kubelet service
|
||||
file:
|
||||
src: "etc/kubernetes/audit-policy.yaml"
|
||||
dest: "/etc/kubernetes/audit-policy.yaml"
|
||||
src: "etc/kubernetes/policies/audit-policy.yaml"
|
||||
dest: "/etc/kubernetes/policies/audit-policy.yaml"
|
||||
group: root
|
||||
owner: root
|
||||
mode: 0644
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ apiServer:
|
|||
extraArgs:
|
||||
enable-admission-plugins: NodeRestriction,PodSecurityPolicy
|
||||
authorization-mode: "Node,RBAC"
|
||||
audit-policy-file: "/etc/kubernetes/audit-policy.yaml"
|
||||
audit-policy-file: "/etc/kubernetes/policies/audit-policy.yaml"
|
||||
audit-log-path: "/var/log/apiserver/audit.log"
|
||||
audit-log-maxage: "30"
|
||||
audit-log-maxbackup: "10"
|
||||
|
|
@ -91,6 +91,11 @@ apiServer:
|
|||
mountPath: "/var/log/apiserver"
|
||||
readOnly: false
|
||||
pathType: DirectoryOrCreate
|
||||
- name: "audit-policies"
|
||||
hostPath: "/etc/kubernetes/policies"
|
||||
mountPath: "/etc/kubernetes/policies"
|
||||
readOnly: false
|
||||
pathType: DirectoryOrCreate
|
||||
{% if lb_kubemaster is defined %}
|
||||
certSANs:
|
||||
- "{{ lb_kubemaster }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue