Commit fb50c68d authored by Jon Kåre Hellan's avatar Jon Kåre Hellan

Basic kubernetes example using public image from dockerhub

parents
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: basic
spec:
replicas: 1
template:
metadata:
labels:
app: basic
spec:
containers:
- name: basic
image: nginx:latest
ports:
- containerPort: 80
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: basic
spec:
rules:
- host: basic.temp.paas2.uninett.no
http:
paths:
- path: /
backend:
serviceName: basic
servicePort: 80
apiVersion: v1
kind: Service
metadata:
name: basic
spec:
ports:
- port: 80
selector:
app: basic
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment