Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homework 2 #2

Merged
merged 1 commit into from
May 14, 2024
Merged

homework 2 #2

merged 1 commit into from
May 14, 2024

Conversation

niko2892
Copy link
Collaborator

@niko2892 niko2892 commented May 8, 2024

Выполнено ДЗ № 2

  • [ + ] Основное ДЗ
  • [ + ] Задание со *

В процессе сделано:

  • Написан манифест деплоймента по заданию

Как запустить проект:

  • запустить minikube
  • выполнить kubectl label nodes minikube homework=true (для доп. задания)
  • запустить из папки kubernetes-controllers команды:
    kubectl apply -f .\namespace.yaml
    kubectl apply -f .\configmap-nginx.yaml
    kubectl apply -f .\deployment.yaml
  • посмотреть имя репликасета в деплойменте nginx: kubectl -n homework describe deploy nginx
  • посмотреть имена подов в репликасете <nginx-...>: kubectl -n homework describe rs <nginx-...>
  • форварднуть порт чтоб открыть страницу в браузере kubectl -n homework port-forward pods/nginx-- 8000:8000 , например kubectl -n homework port-forward pods/nginx-7d55fd466b-7sb65 8000:8000

Как проверить работоспособность:

PR checklist:

  • [ Kubernetes controllers. ReplicaSet, Deployment, DaemonSet ]

@alexeev79 alexeev79 merged commit 36078d6 into main May 14, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants