Skip to content

Commit

Permalink
Update SCC and Network Attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
VaishnaviHire committed Aug 18, 2022
1 parent 82e6104 commit 06f54b2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
namespace: kubeflow
metadata:
name: istio-cni
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
namespace: kubeflow-user-example-com
metadata:
name: istio-cni
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
annotations:
kubernetes.io/description: kubeflow-anyuid provides all features of the restricted SCC
but allows users to run with any UID and any GID.
name: kubeflow-anyuid-$(NAMESPACE)
name: kubeflow-anyuid-kubeflow
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
Expand Down Expand Up @@ -46,6 +46,7 @@ users:
- system:serviceaccount:$(NAMESPACE):pipeline-runner
# Allowing all serviceaccounts in kubeflow to run any uid per istio 1.9 documentation for openshift https://istio.io/latest/docs/setup/platform-setup/openshift/
- system:serviceaccounts:$(NAMESPACE)
- system:serviceaccount:kubeflow-user-example-com:default-editor
volumes:
- configMap
- downwardAPI
Expand Down
6 changes: 6 additions & 0 deletions openshift/openshiftstack/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ resources:
#Kubeflow roles
- ../../common/kubeflow-roles/base

# This is here because it needs to install in namespace kubeflow
- application/istio-1-14-OpenShift/network-attachment.yaml

#Added custom centraldashboard to remove tensorboard
- application/centraldashboard/base

Expand All @@ -24,6 +27,9 @@ resources:
#Create defualt user
- ../../common/user-namespace/base

# Create network-attachment for default user namespace
- application/notebook-controller/base/configs/network_attachment.yaml

configMapGenerator:
- name: kubeflow-config
envs:
Expand Down

0 comments on commit 06f54b2

Please sign in to comment.