Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@fgeckeler

This comment has been minimized.

Copy link

fgeckeler commented Dec 10, 2019

Hi Mark,

I am working through your article "Understanding Kubernetes Networking-Services". The apiVersion needs now to be set to apiVersion: apps/v1

Best regards
Florian

@Markbnj

This comment has been minimized.

Copy link
Owner Author

Markbnj commented Dec 10, 2019

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
You can’t perform that action at this time.