2016-11-21 09:07:04 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
|
|
|
name: nginx-rc
|
|
|
|
labels:
|
|
|
|
name: nginx-rc
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
name: nginx-apps
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: nginx-apps
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: nginx-app
|
2017-09-25 11:25:16 +02:00
|
|
|
image: vmware/nginx-photon:1.11.13
|
2016-11-21 09:07:04 +01:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|
|
|
|
- containerPort: 443
|
|
|
|
volumeMounts:
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/nginx
|
|
|
|
volumes:
|
|
|
|
- name: config
|
|
|
|
configMap:
|
|
|
|
name: harbor-nginx-config
|
|
|
|
items:
|
|
|
|
- key: config
|
|
|
|
path: nginx.conf
|
|
|
|
- key: pkey
|
|
|
|
path: https.key
|
|
|
|
- key: cert
|
2017-09-25 11:25:16 +02:00
|
|
|
path: https.crt
|