Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
8c3af961
Commit
8c3af961
authored
Dec 20, 2018
by
remche
Committed by
kmova
Sep 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix namespace and bump to Deployment apps/v1
(cherry picked from commit 846206d6091d0cda2b926c15271792d552a72d7f)
parent
7f85c7b5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
15 deletions
+24
-15
README.md
README.md
+1
-1
deployment-arm.yaml
deploy/deployment-arm.yaml
+9
-7
deployment.yaml
deploy/deployment.yaml
+8
-6
rbac.yaml
deploy/rbac.yaml
+6
-1
No files found.
README.md
View file @
8c3af961
...
@@ -34,7 +34,7 @@ Kubernetes:
...
@@ -34,7 +34,7 @@ Kubernetes:
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
# Set the subject of the RBAC objects to the current namespace where the provisioner is being deployed
$ NS
=
$(
kubectl config get-contexts|grep
-e
"^
\*
"
|awk
'{print $5}'
)
$ NS
=
$(
kubectl config get-contexts|grep
-e
"^
\*
"
|awk
'{print $5}'
)
$ NAMESPACE
=
${
NS
:-
default
}
$ NAMESPACE
=
${
NS
:-
default
}
$
sed
-i
''
"s/namespace:.*/namespace:
$NAMESPACE
/g"
./deploy/rbac.yaml
$
sed
-i
''
"s/namespace:.*/namespace:
$NAMESPACE
/g"
./deploy/rbac.yaml
./deploy/deployment.yaml
$
kubectl create
-f
deploy/rbac.yaml
$
kubectl create
-f
deploy/rbac.yaml
```
```
...
...
deploy/deployment-arm.yaml
View file @
8c3af961
apiVersion
:
v1
apiVersion
:
apps/v1
kind
:
ServiceAccount
metadata
:
name
:
nfs-client-provisioner
---
kind
:
Deployment
kind
:
Deployment
apiVersion
:
extensions/v1beta1
metadata
:
metadata
:
name
:
nfs-client-provisioner
name
:
nfs-client-provisioner
labels
:
app
:
nfs-client-provisioner
# replace with namespace where provisioner is deployed
namespace
:
default
spec
:
spec
:
replicas
:
1
replicas
:
1
strategy
:
strategy
:
type
:
Recreate
type
:
Recreate
selector
:
matchLabels
:
app
:
nfs-client-provisioner
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
nfs-client-provisioner
app
:
nfs-client-provisioner
spec
:
spec
:
serviceAccount
:
nfs-client-provisioner
serviceAccount
Name
:
nfs-client-provisioner
containers
:
containers
:
-
name
:
nfs-client-provisioner
-
name
:
nfs-client-provisioner
image
:
quay.io/external_storage/nfs-client-provisioner-arm:latest
image
:
quay.io/external_storage/nfs-client-provisioner-arm:latest
...
...
deploy/deployment.yaml
View file @
8c3af961
apiVersion
:
v1
apiVersion
:
apps/v1
kind
:
ServiceAccount
metadata
:
name
:
nfs-client-provisioner
---
kind
:
Deployment
kind
:
Deployment
apiVersion
:
extensions/v1beta1
metadata
:
metadata
:
name
:
nfs-client-provisioner
name
:
nfs-client-provisioner
labels
:
app
:
nfs-client-provisioner
# replace with namespace where provisioner is deployed
namespace
:
default
spec
:
spec
:
replicas
:
1
replicas
:
1
strategy
:
strategy
:
type
:
Recreate
type
:
Recreate
selector
:
matchLabels
:
app
:
nfs-client-provisioner
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
...
...
deploy/rbac.yaml
View file @
8c3af961
kind
:
ServiceAccount
apiVersion
:
v1
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
metadata
:
name
:
nfs-client-provisioner
name
:
nfs-client-provisioner
# replace with namespace where provisioner is deployed
namespace
:
default
---
---
kind
:
ClusterRole
kind
:
ClusterRole
apiVersion
:
rbac.authorization.k8s.io/v1
apiVersion
:
rbac.authorization.k8s.io/v1
...
@@ -28,6 +30,7 @@ metadata:
...
@@ -28,6 +30,7 @@ metadata:
subjects
:
subjects
:
-
kind
:
ServiceAccount
-
kind
:
ServiceAccount
name
:
nfs-client-provisioner
name
:
nfs-client-provisioner
# replace with namespace where provisioner is deployed
namespace
:
default
namespace
:
default
roleRef
:
roleRef
:
kind
:
ClusterRole
kind
:
ClusterRole
...
@@ -38,6 +41,8 @@ kind: Role
...
@@ -38,6 +41,8 @@ kind: Role
apiVersion
:
rbac.authorization.k8s.io/v1
apiVersion
:
rbac.authorization.k8s.io/v1
metadata
:
metadata
:
name
:
leader-locking-nfs-client-provisioner
name
:
leader-locking-nfs-client-provisioner
# replace with namespace where provisioner is deployed
namespace
:
default
rules
:
rules
:
-
apiGroups
:
[
"
"
]
-
apiGroups
:
[
"
"
]
resources
:
[
"
endpoints"
]
resources
:
[
"
endpoints"
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment