-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgolang-https.yml
53 lines (52 loc) · 1.05 KB
/
golang-https.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
43
44
45
46
47
48
49
50
51
52
53
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
annotations:
method: Docker build
metadata:
labels:
app: golang-https
name: golang-https
spec:
replicas: 1
selector:
app: golang-https
deploymentconfig: golang-https
name: golang-https
template:
metadata:
labels:
name: golang-https
app: golang-https
deploymentconfig: golang-https
spec:
volumes:
- name: tls-cert
secret:
secretName: mycert
containers:
- image: alnemr1/go-tls:v1
name: golang-https
imagePullPolicy: Always
ports:
- containerPort: 8443
protocol: TCP
volumeMounts:
- name: tls-cert
mountPath: /usr/local/etc/ssl/certs
---
kind: Service
apiVersion: v1
metadata:
name: golang-https
labels:
app: golang-https
spec:
ports:
- protocol: TCP
port: 8443
targetPort: 8443
selector:
app: golang-https
deploymentconfig: golang-https
name: golang-https
type: ClusterIP