Switch deployment to privilaged
This commit is contained in:
@@ -18,6 +18,12 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: samba
|
- name: samba
|
||||||
image: quay.io/samba.org/samba-server:latest
|
image: quay.io/samba.org/samba-server:latest
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
capabilities:
|
||||||
|
add: ["NET_ADMIN"]
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 445
|
- containerPort: 445
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
@@ -2,4 +2,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: samba
|
|
||||||
namespace: kube-system
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
app.kubernetes.io/name: samba
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 445
|
|
||||||
nodePort: 445
|
|
||||||
targetPort: 445
|
|
||||||
Reference in New Issue
Block a user