[nginx] Use Deployment resource instead of RC
This commit is contained in:
parent
8bc007c7f3
commit
7e12db2454
2 changed files with 13 additions and 12 deletions
|
@ -5,11 +5,13 @@ metadata:
|
||||||
name: nginx
|
name: nginx
|
||||||
labels:
|
labels:
|
||||||
app: nginx
|
app: nginx
|
||||||
|
annotations:
|
||||||
|
acme/certificate: "tazj.in"
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
loadBalancerIP: 104.155.119.229
|
loadBalancerIP: 104.155.119.229
|
||||||
selector:
|
selector:
|
||||||
lb-target: nginx
|
app: nginx
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
name: http
|
name: http
|
||||||
|
|
|
@ -1,30 +1,26 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: extensions/v1beta1
|
||||||
kind: ReplicationController
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-v4
|
name: nginx
|
||||||
labels:
|
labels:
|
||||||
app: nginx
|
app: nginx
|
||||||
version: 1.9.12
|
|
||||||
spec: v4
|
spec: v4
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 1
|
||||||
selector:
|
|
||||||
app: nginx
|
|
||||||
rcv: v4
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nginx
|
app: nginx
|
||||||
lb-target: nginx
|
|
||||||
rcv: v4
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: nginx:1.9.11
|
- image: nginx:1.9.12
|
||||||
name: nginx
|
name: nginx
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: tazj-in-tls
|
- name: tazj-in-tls
|
||||||
mountPath: /etc/nginx/ssl/tazj.in
|
mountPath: /etc/nginx/ssl/tazj.in
|
||||||
|
- name: www-tazj-in-tls
|
||||||
|
mountPath: /etc/nginx/ssl/www.tazj.in
|
||||||
- name: nginx-dhparam
|
- name: nginx-dhparam
|
||||||
mountPath: /etc/nginx/ssl/dhparam
|
mountPath: /etc/nginx/ssl/dhparam
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
|
@ -47,6 +43,9 @@ spec:
|
||||||
- name: tazj-in-tls
|
- name: tazj-in-tls
|
||||||
secret:
|
secret:
|
||||||
secretName: tazj-in-tls
|
secretName: tazj-in-tls
|
||||||
|
- name: www-tazj-in-tls
|
||||||
|
secret:
|
||||||
|
secretName: www-tazj-in-tls
|
||||||
- name: nginx-dhparam
|
- name: nginx-dhparam
|
||||||
secret:
|
secret:
|
||||||
secretName: nginx-dhparam
|
secretName: nginx-dhparam
|
Loading…
Add table
Reference in a new issue