forked from krishnajc/AssetRepo
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathPushCustomerImageToK8.yaml
60 lines (58 loc) · 1.22 KB
/
PushCustomerImageToK8.yaml
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
54
55
56
57
58
59
apiVersion: apps/v1 # for versions before 1.8.0 use apps/v1beta1
kind: Deployment
metadata:
name: DEPLOYMENTNAME
namespace: presales-default
labels:
app: APPNAME
spec:
replicas: 1 # tells deployment to run 1 pod matching the template
selector:
matchLabels:
app: APPNAME
template: # create pods using pod definition in this template
metadata:
labels:
app: APPNAME
spec:
containers:
- name: customer-ismicroservicesruntime
image: DOCKERREPO/IMAGETAG
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5555
imagePullSecrets:
- name: acctest
---
kind: Service
apiVersion: v1
metadata:
name: SERVICENAME
namespace: presales-default
spec:
type: ClusterIP
selector:
app: APPNAME
ports:
- protocol: TCP
port: 5555
targetPort: 5555
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: SERVICENAME
namespace: presales-default
spec:
rules:
- host: ENDPOINT.daeidemo02.k8s.eur.ad.sag
http:
paths:
- backend:
serviceName: SERVICENAME
servicePort: 5555
path: /
tls:
- hosts:
- ENDPOINT.daeidemo02.k8s.eur.ad.sag
secretName: daeidemo02