This commit is contained in:
parent
8dd47900cf
commit
7f0a136cf7
13 changed files with 265 additions and 0 deletions
77
files/nfs/nfs-provisioner-Deployment.yaml
Normal file
77
files/nfs/nfs-provisioner-Deployment.yaml
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: nfs-provisioner
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nfs-provisioner
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nfs-provisioner
|
||||
spec:
|
||||
serviceAccount: nfs-provisioner
|
||||
containers:
|
||||
- name: nfs-provisioner
|
||||
image: quay.io/kubernetes_incubator/nfs-provisioner:latest
|
||||
ports:
|
||||
- name: nfs
|
||||
containerPort: 2049
|
||||
- name: nfs-udp
|
||||
containerPort: 2049
|
||||
protocol: UDP
|
||||
- name: nlockmgr
|
||||
containerPort: 32803
|
||||
- name: nlockmgr-udp
|
||||
containerPort: 32803
|
||||
protocol: UDP
|
||||
- name: mountd
|
||||
containerPort: 20048
|
||||
- name: mountd-udp
|
||||
containerPort: 20048
|
||||
protocol: UDP
|
||||
- name: rquotad
|
||||
containerPort: 875
|
||||
- name: rquotad-udp
|
||||
containerPort: 875
|
||||
protocol: UDP
|
||||
- name: rpcbind
|
||||
containerPort: 111
|
||||
- name: rpcbind-udp
|
||||
containerPort: 111
|
||||
protocol: UDP
|
||||
- name: statd
|
||||
containerPort: 662
|
||||
- name: statd-udp
|
||||
containerPort: 662
|
||||
protocol: UDP
|
||||
securityContext:
|
||||
capabilities:
|
||||
add:
|
||||
- DAC_READ_SEARCH
|
||||
- SYS_RESOURCE
|
||||
args:
|
||||
- "-provisioner=reslinger.net/nfs"
|
||||
env:
|
||||
- name: POD_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
- name: SERVICE_NAME
|
||||
value: nfs-provisioner
|
||||
- name: POD_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
imagePullPolicy: "IfNotPresent"
|
||||
volumeMounts:
|
||||
- name: export-volume
|
||||
mountPath: /export
|
||||
volumes:
|
||||
- name: export-volume
|
||||
hostPath:
|
||||
path: /srv
|
||||
Loading…
Add table
Add a link
Reference in a new issue