Skip to content

Instantly share code, notes, and snippets.

View caussourd's full-sized avatar

Céline Aussourd caussourd

View GitHub Profile
@caussourd
caussourd / default-backend.yaml
Last active December 5, 2016 10:09
Default backend
apiVersion: v1
kind: Service
metadata:
name: default-http-backend
labels:
app: default-http-backend
spec:
type: NodePort
ports:
- port: 80
@caussourd
caussourd / ingress-controller.yaml
Created December 5, 2016 10:10
Nginx Ingress controller
apiVersion: v1
kind: Service
metadata:
name: nginx-ingress
labels:
app: nginx-ingress
spec:
type: LoadBalancer
ports:
- port: 80
@caussourd
caussourd / ingress.yaml
Created December 5, 2016 11:05
Ingress
kind: Ingress
metadata:
name: nginx-ingress
spec:
rules:
- host: website1.com
http:
paths:
- backend:
serviceName: website1
@caussourd
caussourd / website1.yaml
Created December 5, 2016 11:06
Website1
apiVersion: v1
kind: Service
metadata:
name: website1
labels:
app: website1
spec:
type: NodePort
ports:
- port: 80