diff --git a/README.md b/README.md index 64a4c89..ccd4157 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ snirin microservices repository ДЗ 30 Ingress-контроллеры и сервисы в Kubernetes 1. Основное задание - -2. Задания со * +2. Задание со * + - Опишите создаваемый объект Secret в виде Kubernetes-манифеста. Для себя Установка Ingress-контроллера NGINX с менеджером для сертификатов Let's Encrypt @@ -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 ``` diff --git a/kubernetes/reddit/mongo-claim.yml b/kubernetes/reddit/mongo-claim.yml index efacc24..077f23a 100644 --- a/kubernetes/reddit/mongo-claim.yml +++ b/kubernetes/reddit/mongo-claim.yml @@ -1,4 +1,3 @@ ---- apiVersion: v1 kind: PersistentVolumeClaim metadata: @@ -8,6 +7,6 @@ spec: accessModes: - ReadWriteOnce resources: - requests: - storage: 4Gi - volumeName: mongo-ya-pd-storage \ No newline at end of file + requests: + storage: 4Gi + volumeName: mongo-pv \ No newline at end of file diff --git a/kubernetes/reddit/mongo-deployment.yml b/kubernetes/reddit/mongo-deployment.yml index 0e38f7b..5536d4e 100644 --- a/kubernetes/reddit/mongo-deployment.yml +++ b/kubernetes/reddit/mongo-deployment.yml @@ -1,5 +1,5 @@ --- -apiVersion: v1 +apiVersion: apps/v1 kind: Deployment metadata: name: mongo diff --git a/kubernetes/reddit/mongo-volume.yaml b/kubernetes/reddit/mongo-volume.yml similarity index 53% rename from kubernetes/reddit/mongo-volume.yaml rename to kubernetes/reddit/mongo-volume.yml index 9e4a4c1..3b2c1e0 100644 --- a/kubernetes/reddit/mongo-volume.yaml +++ b/kubernetes/reddit/mongo-volume.yml @@ -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 \ No newline at end of file + driver: disk-csi-driver.mks.ycloud.io + fsType: ext4 + volumeHandle: fhmh6mrnsd9v0v2ppe1q \ No newline at end of file diff --git a/kubernetes/reddit/secret_tls.yml b/kubernetes/reddit/secret_tls.yml new file mode 100644 index 0000000..093020d --- /dev/null +++ b/kubernetes/reddit/secret_tls.yml @@ -0,0 +1,9 @@ +--- +apiVersion: v1 +kind: Secret +metadata: + name: ui-ingress +data: + tls.crt: MIIDFTCCAf2gAwIBAgIUEONfM8JBhK17mEWZgHW9xbyFGOgwDQYJKoZIhvcNAQELBQAwGjEYMBYGA1UEAwwPMTU4LjE2MC4xMzAuMTc5MB4XDTIzMTEyNzE2MTcxN1oXDTI0MTEyNjE2MTcxN1owGjEYMBYGA1UEAwwPMTU4LjE2MC4xMzAuMTc5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiEaeXfL6Ui4s3nMjXZIjPzUbULRAbmCiMic6KuNcuhiEvHwROnDcF6OEeKpkrbJslST+W4a0ifgx4GiVCwyGBixrx+MrFptbgl4xS2+Cs7/YtN4SxVjd9CrTuX8U23aNwgUsETYkvHa0C2iD3/5XFSx8U09iqJojzmF7ngCJAUAHRg4lQWQ4dRZmkrSuIIpnY6FuovmsAvd5swUYEbkc9gRlRXrk8ly61O2LcJuyF4oaXevIw/B/qjzrSxWavOS4o3Ubb+fvAdAvaJeaDWmcZcFKdbUSzqn7Slw5wJgv32OJzemk96mI38H92TK4zk7BLaZusTHWA5KPIyOURkaiZwIDAQABo1MwUTAdBgNVHQ4EFgQUK3dUG1o1nTrCtNRUQ3RvtQQrXr8wHwYDVR0jBBgwFoAUK3dUG1o1nTrCtNRUQ3RvtQQrXr8wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAYa7Z2hiU3YeH/r6lbBB1kvxg4rzptRQmA2Ly5uwbDRKVOIqOYEqUZ+y5eDvieg5o3JFYRvffEVhp3zF2QW6IYwwM8Bdi1khmqeRUsmH+w+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