-
Notifications
You must be signed in to change notification settings - Fork 299
/
nginx-deployment.yml
42 lines (42 loc) · 1.05 KB
/
nginx-deployment.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-k8s-deployment
spec:
replicas: 1
template:
metadata:
labels:
app: nginx-k8s-deployment
group: artifactory-k8s-demo
spec:
containers:
- name: nginx-k8s
image: docker.bintray.io/jfrog/nginx-artifactory-pro:6.23.13
env:
- name: ART_BASE_URL
value: "http://artifactory-pro:8081/artifactory"
- name: SSL
value: "true"
ports:
- containerPort: 80
- containerPort: 443
resources:
requests:
memory: "100Mi"
cpu: "100m"
limits:
memory: "200Mi"
cpu: "200m"
volumeMounts:
- mountPath: "/var/opt/jfrog/nginx"
name: nginx-volume
- mountPath: "/var/opt/jfrog/nginx/ssl"
name: ssl-secret-volume
volumes:
- name: nginx-volume
persistentVolumeClaim:
claimName: nginx-claim
- name: ssl-secret-volume
secret:
secretName: art-tls