forked from eclipse-jkube/jkube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eclipse-jkube#672: Add missing fields in ProbeConfig for configur…
…ing Readiness/Liveness Probes Signed-off-by: Rohan Kumar <rohaan@redhat.com>
- Loading branch information
1 parent
b733594
commit b837c45
Showing
13 changed files
with
438 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
kubernetes-maven-plugin/it/src/it/probes-xml-config/expected/kubernetes.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# | ||
# Copyright (c) 2019 Red Hat, Inc. | ||
# This program and the accompanying materials are made | ||
# available under the terms of the Eclipse Public License 2.0 | ||
# which is available at: | ||
# | ||
# https://www.eclipse.org/legal/epl-2.0/ | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 | ||
# | ||
# Contributors: | ||
# Red Hat, Inc. - initial API and implementation | ||
# | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: List | ||
items: | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
jkube.io/git-commit: "@ignore@" | ||
prometheus.io/scrape: "true" | ||
jkube.io/git-branch: "@ignore@" | ||
prometheus.io/port: "9779" | ||
labels: | ||
expose: "true" | ||
provider: jkube | ||
app: jkube-maven-sample-xml-probe-config | ||
version: "@ignore@" | ||
group: org.eclipse.jkube | ||
name: jkube-maven-sample-xml-probe-config | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: jkube-maven-sample-xml-probe-config | ||
provider: jkube | ||
group: org.eclipse.jkube | ||
- apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
jkube.io/git-commit: "@ignore@" | ||
jkube.io/git-branch: "@ignore@" | ||
labels: | ||
provider: jkube | ||
app: jkube-maven-sample-xml-probe-config | ||
version: "@ignore@" | ||
group: org.eclipse.jkube | ||
name: jkube-maven-sample-xml-probe-config | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: jkube-maven-sample-xml-probe-config | ||
provider: jkube | ||
group: org.eclipse.jkube | ||
template: | ||
metadata: | ||
annotations: | ||
jkube.io/git-commit: "@ignore@" | ||
jkube.io/git-branch: "@ignore@" | ||
labels: | ||
provider: jkube | ||
app: jkube-maven-sample-xml-probe-config | ||
version: "@ignore@" | ||
group: org.eclipse.jkube | ||
spec: | ||
containers: | ||
- env: | ||
- name: KUBERNETES_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
image: "@matches('jkube/jkube-maven-sample-xml-probe-config:.*$')@" | ||
imagePullPolicy: IfNotPresent | ||
name: spring-boot | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
- containerPort: 9779 | ||
name: prometheus | ||
protocol: TCP | ||
- containerPort: 8778 | ||
name: jolokia | ||
protocol: TCP | ||
securityContext: | ||
privileged: false | ||
readinessProbe: | ||
failureThreshold: 1 | ||
httpGet: | ||
httpHeaders: | ||
- name: Accept | ||
value: application/json | ||
- name: User-agent | ||
value: MyUserAgent | ||
path: /actuator/health | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 0 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
livenessProbe: | ||
failureThreshold: 1 | ||
httpGet: | ||
httpHeaders: | ||
- name: Accept | ||
value: application/json | ||
- name: User-agent | ||
value: MyUserAgent | ||
path: /actuator/health | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 0 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 |
Oops, something went wrong.