Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b42a97

Browse files
authored
Merge pull requestsorintlab#789 from gvalsecchig/patch-1
doc: add OpenShift example
2 parents37f2376 +0fca35f commit8b42a97

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

‎examples/openshift/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#Stolon inside openshift
2+
3+
Compared to the kubernetes deployments few changes are required. The purpose of this document is to cover these additional steps.
4+
5+
##Service account
6+
The best approch to deploy Stolon in openshift is to create a dedicate service account and assign it the required Security context constraints (scc).
7+
```
8+
oc create sa <service_account_name>
9+
```
10+
stolon_role.yaml and role-binding.yaml must be modified to match service account name and the namespace for the cluster deployment
11+
12+
As additional step assign anyuid scc to the service account:
13+
```
14+
oc adm policy add-scc-to-user anyuid system:serviceaccount:<namespace>:<service_account_name>
15+
```
16+
##Patch cluster components:
17+
Sentinel:
18+
```
19+
oc patch --local=true -f stolon-sentinel.yaml -p '{"spec":{"template":{"spec":{"serviceAccount": "<service_account_name>"}}}}' -o yaml > stolon-sentinel_new.yaml
20+
```
21+
Keeper
22+
```
23+
oc patch --local=true -f stolon-keeper.yaml -p '{"spec":{"template":{"spec":{"serviceAccount": "<service_account_name>"}}}}' -o yaml > stolon-keeper_new.yaml
24+
```
25+
Proxy
26+
```
27+
oc patch --local=true -f stolon-proxy.yaml -p '{"spec":{"template":{"spec":{"serviceAccount": "<service_account_name>"}}}}' -o yaml > stolon-proxy_new.yaml
28+
```
29+
##Deployment
30+
Deploy the Stolon components using the files created at the previous step.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp