-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment_config.yaml
58 lines (58 loc) · 1.31 KB
/
deployment_config.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
# Tekton-101: DeploymentConfig, OpenShift specific
apiVersion: v1
kind: DeploymentConfig
metadata:
name: tekton-101-deployment-config
labels:
app: tekton-101
spec:
replicas: 1
selector:
name: tekton-101
strategy:
type: Rolling
rollingParams:
timeoutSeconds: 60
# post:
# failurePolicy: Ignore
# tagImages:
# - containerName: tekton-101
# to:
# kind: ImageStreamTag
# name: tekton-101:latest
template:
metadata:
labels:
name: tekton-101
app: tekton-101
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/tekton-101/tekton-101:latest
imagePullPolicy: Always
name: tekton-101
ports:
- containerPort: 5000
protocol: TCP
resources:
limits:
memory: 256Mi
env:
- name: TEKTON_101_ENV_EXAMPLE
value: "env value."
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
- emptyDir: {}
name: vol1
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
from:
kind: "ImageStreamTag"
name: "tekton-101:latest"
namespace: "tekton-101"
containerNames:
- "tekton-101"
status: {}