Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Service
- metadata:
- name: my-nginx
- labels:
- run: my-nginx
- spec:
- type: NodePort
- ports:
- - port: 8080
- targetPort: 80
- protocol: TCP
- name: http
- - port: 443
- protocol: TCP
- name: https
- selector:
- run: my-nginx
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: my-nginx
- spec:
- selector:
- matchLabels:
- run: my-nginx
- replicas: 1
- template:
- metadata:
- labels:
- run: my-nginx
- spec:
- volumes:
- - name: secret-volume
- secret:
- secretName: nginxsecret
- containers:
- - name: nginxhttps
- image: bprashanth/nginxhttps:1.0
- ports:
- - containerPort: 443
- - containerPort: 80
- volumeMounts:
- - mountPath: /etc/nginx/ssl
- name: secret-volume
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement