Skip to content

Commit 040ddca

Browse files
committed
Fix deploymentconfig
1 parent 5af22fd commit 040ddca

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

templates/jlink/jlinked-app.yaml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,32 @@ objects:
232232
spec:
233233
replicas: 1
234234
selector:
235-
matchLabels:
236-
app: ${APPNAME}-jlinked-app
235+
app: ${APPNAME}-jlinked-app
236+
template:
237+
metadata:
238+
labels:
239+
app: ${APPNAME}-jlinked-app
240+
spec:
241+
containers:
242+
- name: ${APPNAME}-jlinked-app-container
243+
image: >-
244+
${APPNAME}-lightweight-image:latest
245+
ports:
246+
- containerPort: 8080
247+
protocol: TCP
248+
strategy:
249+
type: Rolling
237250
triggers:
238-
- type: ConfigChange
239-
- imageChangeParams:
251+
- type: ImageChange
252+
imageChangeParams:
240253
automatic: true
241254
containerNames:
242-
- ${APPNAME}-jlinked-app-container
243-
from:
255+
- ${APPNAME}-jlinked-app-container
256+
from:
244257
kind: ImageStreamTag
245-
name: ${APPNAME}-lightweight-image:latest
246-
type: ImageChange
247-
strategy:
248-
type: Rolling
258+
name: '${APPNAME}-lightweight-image:latest'
259+
namespace: default
260+
- type: ConfigChange
249261
- apiVersion: v1
250262
kind: Service
251263
metadata:

0 commit comments

Comments
 (0)