Skip to content

Commit

Permalink
kubernetes-3
Browse files Browse the repository at this point in the history
  • Loading branch information
snirin committed Nov 27, 2023
1 parent aa2f0f7 commit 85cb174
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ snirin microservices repository

ДЗ 30 Ingress-контроллеры и сервисы в Kubernetes
1. Основное задание

2. Задания со *
2. Задание со *
- Опишите создаваемый объект Secret в виде Kubernetes-манифеста.

Для себя
Установка Ingress-контроллера NGINX с менеджером для сертификатов Let's Encrypt
Expand Down Expand Up @@ -33,6 +33,7 @@ kubectl describe secret ui-ingress
yc compute disk create --name k8s --size 4 --description "disk for k8s"
kubectl delete deploy mongo
kubectl apply -f mongo-deployment.yml
```


Expand Down
7 changes: 3 additions & 4 deletions kubernetes/reddit/mongo-claim.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand All @@ -8,6 +7,6 @@ spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi
volumeName: mongo-ya-pd-storage
requests:
storage: 4Gi
volumeName: mongo-pv
2 changes: 1 addition & 1 deletion kubernetes/reddit/mongo-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: v1
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ metadata:
name: mongo-pv
spec:
capacity:
storage: 4Gi
storage: 4Gi
accessModes:
- ReadWriteOnce
csi:
driver: disk-csi-driver.mks.ycloud.io
fsType: ext4
volumeHandle: fhmh6mrnsd9v0v2ppe1q
driver: disk-csi-driver.mks.ycloud.io
fsType: ext4
volumeHandle: fhmh6mrnsd9v0v2ppe1q
9 changes: 9 additions & 0 deletions kubernetes/reddit/secret_tls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @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MnovjtfUuaIDDmTOPXwBDM/L577Mc9JiGUbU47/DeOTzckLLC3ZBJ7feKrGD36aFUZQKBgHDphPgkL18/N2Tm29sVzytdS/QDyB7zIuaCZxfJKOCNwkv4rgK7cJtJkucgzxeoAaDe73YPuYzA0h0jcdn66k5IeVzz+jtXKwRWzlpUgaLMXvbV24jzuWFuTtfksbbm1EqpKGosWmcO2N/YU49QebpYy4qarorcgMbCJMDG3AAPAoGBAJAo9aQ0BNELm6JLfrZ8D8xniUXbJdPtPnCR1DrXc3sAMHWd58idevtmv8c3GQcSBaUjWUbyT0IIcavxeiIfbbWN+68QAx84aFeQ932cfXgJpkRT0s6lcfoA5lPnCg4qqgNNGQhSXrZhfPVpN+V583Sol6XXdsJnsVgxxvZvsNsdAoGAA81Qj8LlkWP+qeNWk0sonrN6GVxKiZW/xUnMDPBMjzqXdCufm5DT/hHTTyhf2Ob1npmiUhljml+ER/YV61NLmK1qlJ3p2NxPneHG07ZM4WPLdjmhjkg5dU0tVbOBXOyKNa+5y+yHaMp6uelP5rNagUzGNd4Vb8OVZmj+2GPL1T0=
type: kubernetes.io/tls

0 comments on commit 85cb174

Please sign in to comment.