about summary refs log tree commit diff
path: root/nginx/nginx-rc.yaml
blob: e876ae09374a86409ffd7e4b212261e8cf29e4c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx
  labels:
    app: nginx
    version: 1.9.11
    spec: v2
spec:
  replicas: 2
  selector:
    app: nginx
    rcv: v2
  template:
    metadata:
      labels:
        app: nginx
        lb-target: nginx
        rcv: v2
    spec:
      containers:
        - image: nginx:1.9.11
          name: nginx
          volumeMounts:
            - name: tazj-in-tls
              mountPath: /etc/nginx/ssl/tazj.in
            - name: nginx-dhparam
              mountPath: /etc/nginx/ssl/dhparam
            - name: nginx-config
              mountPath: /etc/nginx/conf.d
            - name: nginx-logs
              mountPath: /var/log/nginx
          ports:
            - containerPort: 80
            - containerPort: 443
      volumes:
        - name: tazj-in-tls
          secret:
            secretName: tazj-in-tls
        - name: nginx-dhparam
          secret:
            secretName: nginx-dhparam
        - name: nginx-config
          secret:
            secretName: nginx-config
        - name: nginx-logs
          emptyDir: {}