# Automating & Hardening Kubernetes stuff

**URL:** <https://forums.suse.com/t/automating-hardening-kubernetes-stuff/10688>\
**Category:** General\
**Created:** [June 7, 2018, 9:07am UTC](https://forums.suse.com/t/automating-hardening-kubernetes-stuff/10688 "2018-06-07T09:07:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![0xS](https://avatars.discourse-cdn.com/v4/letter/0/9e8a1a/32.png) [@0xS](https://forums.suse.com/u/0xS)\
**Post date:** [June 7, 2018, 9:07am UTC](https://forums.suse.com/t/automating-hardening-kubernetes-stuff/10688/1 "2018-06-07T09:07:17Z")

</div>

Hi everyone 🙂

I do have some questions regarding automating and hardening Kubernetes via Rancher.  
We’re working with Ansible and RKE and try to avoid clicking in the WebUI as much as possible.

- How can I pass additional flags to the kube-api for example the “–anonymous-auth=false” flag?
- What is the best (automated) method to supply a Network Policy?
- Can I use rancher-cli to supply a PodSecurity Policy?

Do you know a method to automate all this? So for example writing an ansible playbook to create the k8 cluster with RKE supply the additional flag(s) to the kube-api, set pod/network security policy?

Thank you very much in advance!

Regards,  
0xS

Edit: We are using rancher 2.0  
Edit2: We are using k8 v1.10
