mirror of
https://github.com/slurm-personal/school-dev-k8s.git
synced 2026-06-27 13:50:24 +00:00
Merge pull request #19 from wondertalik/main
fix: update apiversion, some small fixes
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
1) Переходим в директорию с практикой.
|
1) Переходим в директорию с практикой.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/slurm/practice/4.advanced-abstractions/1.daemonset
|
cd ~/school-dev-k8s/practice/10.deployment-alternative/1.daemonset
|
||||||
```
|
```
|
||||||
|
|
||||||
2) Создаем демонсет
|
2) Создаем демонсет
|
||||||
+1
-1
@@ -30,7 +30,7 @@ spec:
|
|||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
beta.kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 65534
|
runAsUser: 65534
|
||||||
+7
-1
@@ -1,8 +1,14 @@
|
|||||||
# StatefulSet
|
# StatefulSet
|
||||||
|
|
||||||
|
1) Переходим в директорию с практикой.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd ~/school-dev-k8s/practice/10.deployment-alternative/2.statefulset
|
||||||
|
```
|
||||||
|
|
||||||
### Создаем стэйтфулсет
|
### Создаем стэйтфулсет
|
||||||
|
|
||||||
1) Применяем каталог с манифестами
|
2) Применяем каталог с манифестами
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl apply -f rabbitmq-statefulset
|
kubectl apply -f rabbitmq-statefulset
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: Role
|
kind: Role
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: endpoint-reader
|
name: endpoint-reader
|
||||||
rules:
|
rules:
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: endpoint-reader
|
name: endpoint-reader
|
||||||
subjects:
|
subjects:
|
||||||
Reference in New Issue
Block a user