-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
263 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
app.openshift.io/connects-to: "[{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"\ | ||
,\"name\":\"grumpy-kafka-entity-operator\"},{\"apiVersion\":\"apps/v1\",\"kind\"\ | ||
:\"StatefulSet\",\"name\":\"cat-repo-host\"}]" | ||
app.openshift.io/route-disabled: "false" | ||
app.quarkus.io/commit-id: 4939dd6eec0b157aff443a1fe5684c07625094c8 | ||
app.quarkus.io/build-timestamp: 2023-02-10 - 10:27:11 +0000 | ||
prometheus.io/scrape: "true" | ||
prometheus.io/path: /q/metrics | ||
prometheus.io/port: "8080" | ||
prometheus.io/scheme: http | ||
labels: | ||
app: cat-multiplayer | ||
app.kubernetes.io/component: cat-multiplayer | ||
app.kubernetes.io/instance: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/part-of: grumpycat-app | ||
app.kubernetes.io/version: 0.7.0 | ||
name: cat-multiplayer | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/version: 0.7.0 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
annotations: | ||
app.quarkus.io/commit-id: 4939dd6eec0b157aff443a1fe5684c07625094c8 | ||
app.quarkus.io/build-timestamp: 2023-02-10 - 10:27:11 +0000 | ||
prometheus.io/scrape: "true" | ||
prometheus.io/path: /q/metrics | ||
prometheus.io/port: "8080" | ||
prometheus.io/scheme: http | ||
labels: | ||
app: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/version: 0.7.0 | ||
spec: | ||
containers: | ||
- envFrom: | ||
- prefix: DB_ | ||
secretRef: | ||
name: cat-pguser-cat | ||
- configMapRef: | ||
name: multiplayer-config | ||
image: quay.io/wpernath/cat-multiplayer:v0.7.0 | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /q/health/live | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 0 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
name: cat-multiplayer | ||
ports: | ||
- containerPort: 8080 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /q/health/ready | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 0 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 1024Mi | ||
requests: | ||
cpu: 100m | ||
memory: 512Mi | ||
startupProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /q/health/started | ||
port: 8080 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 1 |
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,25 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
annotations: | ||
app.openshift.io/connects-to: "[{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"\ | ||
,\"name\":\"grumpy-kafka-entity-operator\"},{\"apiVersion\":\"apps/v1\",\"kind\"\ | ||
:\"StatefulSet\",\"name\":\"cat-repo-host\"}]" | ||
app.quarkus.io/commit-id: 4939dd6eec0b157aff443a1fe5684c07625094c8 | ||
app.quarkus.io/build-timestamp: 2023-02-10 - 10:27:11 +0000 | ||
labels: | ||
app: cat-multiplayer | ||
app.kubernetes.io/component: cat-multiplayer | ||
app.kubernetes.io/instance: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/part-of: grumpycat-app | ||
app.kubernetes.io/version: 0.7.0 | ||
name: cat-multiplayer | ||
spec: | ||
port: | ||
targetPort: 8080-tcp | ||
to: | ||
kind: Service | ||
name: cat-multiplayer | ||
weight: 100 | ||
wildcardPolicy: None |
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,37 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
app.openshift.io/connects-to: "[{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\"\ | ||
,\"name\":\"grumpy-kafka-entity-operator\"},{\"apiVersion\":\"apps/v1\",\"kind\"\ | ||
:\"StatefulSet\",\"name\":\"cat-repo-host\"}]" | ||
app.quarkus.io/commit-id: 4939dd6eec0b157aff443a1fe5684c07625094c8 | ||
app.quarkus.io/build-timestamp: 2023-02-10 - 10:27:11 +0000 | ||
prometheus.io/scrape: "true" | ||
prometheus.io/path: /q/metrics | ||
prometheus.io/port: "8080" | ||
prometheus.io/scheme: http | ||
labels: | ||
app: cat-multiplayer | ||
app.kubernetes.io/component: cat-multiplayer | ||
app.kubernetes.io/instance: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/part-of: grumpycat-app | ||
app.kubernetes.io/version: 0.7.0 | ||
name: cat-multiplayer | ||
spec: | ||
internalTrafficPolicy: Cluster | ||
ipFamilies: | ||
- IPv4 | ||
ipFamilyPolicy: SingleStack | ||
ports: | ||
- name: 8080-tcp | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: cat-multiplayer | ||
app.kubernetes.io/name: cat-multiplayer | ||
app.kubernetes.io/version: 0.7.0 | ||
sessionAffinity: None | ||
type: ClusterIP |
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
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
41 changes: 41 additions & 0 deletions
41
quarkus-multiplayer/src/main/java/org/wanja/fatcat/mp/VersionService.java
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,41 @@ | ||
package org.wanja.fatcat.mp; | ||
|
||
import javax.ws.rs.Consumes; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.POST; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
@Path("/") | ||
public class VersionService { | ||
@ConfigProperty(name = "application.version") | ||
String versionString; | ||
|
||
@ConfigProperty(name = "quarkus.application.name") | ||
String appName; | ||
|
||
@GET | ||
@Path("/version") | ||
// @Produces("text/plain") | ||
public AppVersion version() { | ||
return new AppVersion("grumpycat-server", this.appName, this.versionString); | ||
} | ||
|
||
final class AppVersion { | ||
public String appName; | ||
public String internalName; | ||
public String appVersion; | ||
|
||
public AppVersion() { | ||
} | ||
|
||
public AppVersion(String n, String i, String v) { | ||
this.appName = n; | ||
this.appVersion = v; | ||
this.internalName = i; | ||
} | ||
} | ||
|
||
} |
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
Oops, something went wrong.