k8s-networking-services/test-deployment
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: service-test | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: service_test_pod | |
template: | |
metadata: | |
labels: | |
app: service_test_pod | |
spec: | |
containers: | |
- name: simple-http | |
image: python:2.7 | |
imagePullPolicy: IfNotPresent | |
command: ["/bin/bash"] | |
args: ["-c", "echo \"<p>Hello from $(hostname)</p>\" > index.html; python -m SimpleHTTPServer 8080"] | |
ports: | |
- name: http | |
containerPort: 8080 |
This comment has been minimized.
This comment has been minimized.
Hi, Florian. Yes this article was written a couple of years ago and the apiVersion needs to be updated. Thanks for the reminder. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
fgeckeler commentedDec 10, 2019
Hi Mark,
I am working through your article "Understanding Kubernetes Networking-Services". The
apiVersion
needs now to be set toapiVersion: apps/v1
Best regards
Florian