-
Notifications
You must be signed in to change notification settings - Fork 11
/
deployment.yaml
51 lines (51 loc) · 1.24 KB
/
deployment.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
apiVersion: v1
kind: Template
metadata:
name: tomcat-demo-template
annotations:
description: "Description Tomcat demo template"
objects:
- apiVersion: v1
kind: Deployment
apiVersion: apps/v1
metadata:
name: tomcat-demo
creationTimestamp:
labels:
run: tomcat-demo
spec:
selector:
matchLabels:
run: tomcat-demo
template:
metadata:
creationTimestamp:
labels:
run: tomcat-demo
spec:
containers:
- name: tomcat-demo
image: "${DOCKER_URL}"
env:
- name: KUBERNETES_NAMESPACE
value: "${KUBERNETES_NAMESPACE}"
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /demo-1.0/health
port: 8080
initialDelaySeconds: 3
periodSeconds: 3
resources: {}
strategy: {}
status: {}
parameters:
- name: DOCKER_URL
displayName: Docker image URL
description: The URL where you pushed the image
required: true
- name: KUBERNETES_NAMESPACE
displayName: Name Space or Project
description: The name space or the project you have created for app
required: true