Nginx Deployment

The team responsible for Kubernetes wants to add a Deployment that will deploy 4 nginx Pods which should have port 443 open. Finish the following YAML configuration so that it implements those requirements:

apiVersion: apps/v1
kind: 
metadata: name: deployment-nginx labels: web: public spec: replicas:
selector: matchLabels: web: public template: metadata: labels:
:
spec: containers: - name: nginx image: nginx:1.14.2 ports: -
: 443

Tags

  • Kubernetes
  • Deployment
  • Services
  • Public
  • Easy

Information

Difficulty: Easy

Duration: 5 min

Author: Anonymous

Score Distribution

% of candidates
0-33%
34-67%
68-100%
Score

Would you like to see our other questions?

We have 1000+ premium hand-crafted questions for 160+ job skills and 20+ coding languages. We prefer questions with small samples of actual work over academic problems or brain teasers.

Would you like to see our tests?

The following tests contain Kubernetes related questions:

On the blog

Since we're all biased and we use incorrect proxies, why not just outsource hiring to experts or recruitment agencies? After all, they've been screening people for many years, so they must know how to do it right?

Not really. I was surprised to discover that many experts...