Skip to content

Commit

Permalink
hostnetwork=false
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyas220 <[email protected]>
  • Loading branch information
Shreyas220 committed Aug 29, 2023
1 parent 49939f4 commit 0631ac6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployments/generic/kubearmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@ spec:
name: docker-storage-path
readOnly: true
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
hostNetwork: false
hostPID: true
initContainers:
- image: kubearmor/kubearmor-init:stable
Expand Down
3 changes: 3 additions & 0 deletions pkg/KubeArmorOperator/internal/controller/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ func generateDaemonset(name, enforcer, runtime, socket, runtimeStorage, btfPrese
daemonset.Spec.Template.Spec.InitContainers[0].Image = common.KubeArmorInitImage
daemonset.Spec.Template.Spec.InitContainers[0].ImagePullPolicy = corev1.PullPolicy(common.KubeArmorInitImagePullPolicy)

daemonset.Spec.Template.Spec.HostNetwork = false

daemonset = addOwnership(daemonset).(*appsv1.DaemonSet)

fmt.Printf("generated daemonset: %v", daemonset)
return daemonset
}
Expand Down

0 comments on commit 0631ac6

Please sign in to comment.