diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2020-12-10 00:19:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-12-10 00:19:11 +0000 |
commit | a1fe6f8fe364fc005b534de6b29e66fe22ed098f (patch) | |
tree | bc2f984745e5c802a59dcf0657c6ddd33e82aa61 /kud/deployment_infra/playbooks/configure-emco.yml | |
parent | d3b0887248f10248d4a87a91f918984761f95599 (diff) | |
parent | 5f99856b3cdc3c11e82f0f67b3da973d43e47fc7 (diff) |
Merge "Enable pod security policies"
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-emco.yml')
-rw-r--r-- | kud/deployment_infra/playbooks/configure-emco.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kud/deployment_infra/playbooks/configure-emco.yml b/kud/deployment_infra/playbooks/configure-emco.yml index 7a4cf926..96b4a23d 100644 --- a/kud/deployment_infra/playbooks/configure-emco.yml +++ b/kud/deployment_infra/playbooks/configure-emco.yml @@ -36,12 +36,20 @@ - debug: var: make_all.stdout_lines + - name: Create emco namespace + shell: "/usr/local/bin/kubectl create namespace emco" + ignore_errors: True + + - name: Create pod security policy role bindings + shell: "/usr/local/bin/kubectl -n emco create rolebinding psp:default:privileged --clusterrole=psp:privileged --serviceaccount=emco:default --serviceaccount=emco:emco-fluentd" + ignore_errors: True + - name: Get cluster name shell: "kubectl -n kube-system get configmap/kubeadm-config -o yaml | grep clusterName: | awk '{print $2}'" register: cluster_name - name: Change the emco directory and run the command helm install - command: /usr/local/bin/helm install --namespace emco --create-namespace --set emco-tools.fluentd.clusterDomain={{ cluster_name.stdout }} emco dist/packages/emco-0.1.0.tgz + command: /usr/local/bin/helm install --namespace emco --set emco-tools.fluentd.clusterDomain={{ cluster_name.stdout }} emco dist/packages/emco-0.1.0.tgz register: helm_install args: chdir: /opt/multicloud/deployments/helm/v2/emco |