Update the nginx controller manifests to run in the kube-system namespace, be deployments and some general cleanup

This commit is contained in:
Lucas Käldström 2017-01-05 09:40:40 +02:00
parent 567fa3b456
commit 4f3e5b77d3
No known key found for this signature in database
GPG key ID: 3FA3783D77751514
3 changed files with 51 additions and 38 deletions

View file

@ -1,15 +1,16 @@
apiVersion: v1
kind: ReplicationController
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: default-http-backend
labels:
k8s-app: default-http-backend
namespace: kube-system
spec:
replicas: 1
selector:
app: default-http-backend
template:
metadata:
labels:
app: default-http-backend
k8s-app: default-http-backend
spec:
terminationGracePeriodSeconds: 60
containers:
@ -34,3 +35,17 @@ spec:
requests:
cpu: 10m
memory: 20Mi
---
apiVersion: v1
kind: Service
metadata:
name: default-http-backend
namespace: kube-system
labels:
k8s-app: default-http-backend
spec:
ports:
- port: 80
targetPort: 8080
selector:
k8s-app: default-http-backend