Add kubernetes examples + better document methods of applying authentication
Closes #33
This commit is contained in:
		@@ -0,0 +1,19 @@
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: Deployment
 | 
			
		||||
metadata:
 | 
			
		||||
  name: whoami
 | 
			
		||||
  labels:
 | 
			
		||||
    app: whoami
 | 
			
		||||
spec:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      app: whoami
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      labels:
 | 
			
		||||
        app: whoami
 | 
			
		||||
    spec:
 | 
			
		||||
      containers:
 | 
			
		||||
      - image: containous/whoami
 | 
			
		||||
        name: whoami
 | 
			
		||||
@@ -0,0 +1,16 @@
 | 
			
		||||
apiVersion: extensions/v1beta1
 | 
			
		||||
kind: Ingress
 | 
			
		||||
metadata:
 | 
			
		||||
  name: whoami
 | 
			
		||||
  labels:
 | 
			
		||||
    app: whoami
 | 
			
		||||
  annotations:
 | 
			
		||||
    kubernetes.io/ingress.class: traefik
 | 
			
		||||
spec:
 | 
			
		||||
  rules:
 | 
			
		||||
  - host: whoami.example.com
 | 
			
		||||
    http:
 | 
			
		||||
      paths:
 | 
			
		||||
      - backend:
 | 
			
		||||
          serviceName: whoami
 | 
			
		||||
          servicePort: http
 | 
			
		||||
@@ -0,0 +1,7 @@
 | 
			
		||||
commonLabels:
 | 
			
		||||
  app: whoami
 | 
			
		||||
 | 
			
		||||
resources:
 | 
			
		||||
- deployment.yaml
 | 
			
		||||
- service.yaml
 | 
			
		||||
- ingress.yaml
 | 
			
		||||
@@ -0,0 +1,14 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  name: whoami
 | 
			
		||||
  labels:
 | 
			
		||||
    app: whoami
 | 
			
		||||
spec:
 | 
			
		||||
  type: ClusterIP
 | 
			
		||||
  ports:
 | 
			
		||||
  - name: http
 | 
			
		||||
    port: 80
 | 
			
		||||
  selector:
 | 
			
		||||
    app: whoami
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user