July 2018
Intermediate to advanced
504 pages
11h 34m
English
You can also create Kubernetes resources manually using YAML and JSON files. Let's go ahead and create a simple pod running a httpd web server using the kubectl create command. We will have to create a YAML-formatted file:
$ cat httpd-pod.yamlapiVersion: v1kind: Podmetadata: name: httpd namespace: defaultspec: containers: - name: httpd-container image: httpd ports: - containerPort: 80
It may look a bit complicated and hard to understand, but as we ...