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

Deployment can not be created directly with port and replicas in new version of kubernetes #143

Open
echang0929 opened this issue Oct 14, 2020 · 2 comments

Comments

@echang0929
Copy link

So there are issues for the following questions in f.services.md

  1. Create a deployment called foo using image 'dgkanatsios/simpleapp' (a simple server that returns hostname) and 3 replicas. Label it as 'app=foo'. Declare that containers in this pod will accept traffic on port 8080 (do NOT create a service yet)
  2. Create an nginx deployment of 2 replicas, expose it via a ClusterIP service on port 80. Create a NetworkPolicy so that only pods with labels 'access: granted' can access the deployment and apply it

Instead, we need create a yaml with dry-run and update it.

@dgkanatsios
Copy link
Owner

thank you! Feel free to create a PR with the necessary changes, let me know if I can help in any way!

JamesMcMahon added a commit to JamesMcMahon/CKAD-exercises that referenced this issue Oct 21, 2020
Deployment can not be created directly with port and replicas in the newer versions of kubectl.

See  dgkanatsios#143
@JamesMcMahon
Copy link
Contributor

@dgkanatsios PR up!

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

No branches or pull requests

3 participants