A company's security policy specifies that development and production containers must run on separate nodes in a given Swarm cluster.
Can this be used to schedule containers to meet the security policy requirements?
Solution: node affinities
Does this command display all the pods in the cluster that are labeled as env; development'?
Solution. 'kubectl gel pods --all-namespaces -I 'env in (development)''
In the context of a swarm mode cluster, does this describe a node?
Solution: a physical machine participating in the swarm
Does this command display all the pods in the cluster that are labeled as 'env: development'?
Solution: 'kubectl get pods -I env=development'
The Kubernetes yaml shown below describes a networkPolicy.
Will the networkPolicy BLOCK this traffic?
Solution: a request issued from a pod lacking the tier: api label, to a pod bearing the tier: backend label