Last active
August 14, 2020 15:25
-
-
Save nebhale/be5fa6eaf5775026674a512aaae9dbb3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-datasource | |
type: Opaque | |
stringData: | |
spring.datasource.host: "10.0.0.3" # spring.datasource.host | |
spring.datasource.password: "test-password" # spring.datasource.password | |
spring.datasource.port: "3309" # spring.datasource.port | |
spring.datasource.username: "test-username" # spring.datasource.username | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-elasticsearch | |
type: Opaque | |
stringData: | |
spring.data.elasticsearch.client.reactive.endpoints: "10.0.0.1, 10.0.0.2" # spring.data.elasticsearch.client.reactive.endpoints | |
spring.data.elasticsearch.client.reactive.password: "test-password" # spring.data.elasticsearch.client.reactive.password | |
spring.data.elasticsearch.client.reactive.use-ssl: "true" # spring.data.elasticsearch.client.reactive.use-ssl | |
spring.data.elasticsearch.client.reactive.username: "test-username" # spring.data.elasticsearch.client.reactive.username | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-app | |
data: | |
spring.jackson.time-zone: "GMT" # spring.jackson.time-zone | |
spring.main.banner-mode: "OFF" # spring.main.banner-mode | |
spring.profiles.active: "mysql" # spring.profiles.active | |
spring.reactor.debug-agent.enabled: "false" # spring.reactor.debug-agent.enabled | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: spring-petclinic | |
spec: | |
selector: | |
matchLabels: | |
app: spring-petclinic | |
template: | |
metadata: | |
labels: | |
app: spring-petclinic | |
spec: | |
containers: | |
- name: spring-petclinic | |
image: nebhale/spring-petclinic | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8081 | |
env: | |
- name: MANAGEMENT_SERVER_PORT | |
value: "8081" | |
livenessProbe: | |
httpGet: | |
path: /actuator/health/liveness | |
port: 8081 | |
readinessProbe: | |
httpGet: | |
path: /actuator/health/readiness | |
port: 8081 | |
lifecycle: | |
preStop: | |
exec: | |
command: ["sh", "-c", "sleep 1"] | |
volumeMounts: | |
- name: v-datasource | |
mountPath: /etc/config/datasource | |
- name: v-elasticsearch | |
mountPath: /etc/config/elasticsearch | |
- name: v-app | |
mountPath: /etc/config/app | |
volumes: | |
- name: v-app | |
configMap: | |
name: cm-app | |
- name: v-datasource | |
secret: | |
secretName: s-datasource | |
- name: v-elasticsearch | |
secret: | |
secretName: s-elasticsearch |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-datasource | |
type: Opaque | |
stringData: | |
host: "10.0.0.3" # spring.datasource.host | |
password: "test-password" # spring.datasource.password | |
port: "3309" # spring.datasource.port | |
username: "test-username" # spring.datasource.username | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-elasticsearch | |
type: Opaque | |
stringData: | |
endpoints: "10.0.0.1, 10.0.0.2" # spring.data.elasticsearch.client.reactive.endpoints | |
password: "test-password" # spring.data.elasticsearch.client.reactive.password | |
use-ssl: "true" # spring.data.elasticsearch.client.reactive.use-ssl | |
username: "test-username" # spring.data.elasticsearch.client.reactive.username | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-app | |
data: | |
active: "mysql" # spring.profiles.active | |
banner-mode: "OFF" # spring.main.banner-mode | |
enabled: "false" # spring.reactor.debug-agent.enabled | |
time-zone: "GMT" # spring.jackson.time-zone | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: spring-petclinic | |
spec: | |
selector: | |
matchLabels: | |
app: spring-petclinic | |
template: | |
metadata: | |
labels: | |
app: spring-petclinic | |
spec: | |
containers: | |
- name: spring-petclinic | |
image: nebhale/spring-petclinic | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8081 | |
env: | |
- name: MANAGEMENT_SERVER_PORT | |
value: "8081" | |
livenessProbe: | |
httpGet: | |
path: /actuator/health/liveness | |
port: 8081 | |
readinessProbe: | |
httpGet: | |
path: /actuator/health/readiness | |
port: 8081 | |
lifecycle: | |
preStop: | |
exec: | |
command: ["sh", "-c", "sleep 1"] | |
volumeMounts: | |
- name: v-datasource | |
mountPath: /etc/config | |
- name: v-elasticsearch | |
mountPath: /etc/config | |
- name: v-app | |
mountPath: /etc/config | |
volumes: | |
- name: v-app | |
configMap: | |
name: cm-app | |
items: | |
- key: active | |
path: spring/profiles/active | |
- key: banner-mode | |
path: spring/main/banner-mode | |
- key: enabled | |
path: spring/reactor/debug-agent/enabled | |
- key: time-zone | |
path: spring/jackson/time-zone | |
- name: v-datasource | |
secret: | |
secretName: s-datasource | |
items: | |
- key: host | |
path: spring/datasource/host | |
- key: password | |
path: spring/datasource/password | |
- key: port | |
path: spring/datasource/port | |
- key: username | |
path: spring/datasource/username | |
- name: v-elasticsearch | |
secret: | |
secretName: s-elasticsearch | |
items: | |
- key: endpoints | |
path: spring/data/elasticsearch/client/reactive/endpoints | |
- key: password | |
path: spring/data/elasticsearch/client/reactive/password | |
- key: use-ssl | |
path: spring/data/elasticsearch/client/reactive/use-ssl | |
- key: username | |
path: spring/data/elasticsearch/client/reactive/username |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-datasource | |
type: Opaque | |
stringData: | |
host: "10.0.0.3" # spring.datasource.host | |
password: "test-password" # spring.datasource.password | |
port: "3309" # spring.datasource.port | |
username: "test-username" # spring.datasource.username | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-elasticsearch | |
type: Opaque | |
stringData: | |
endpoints: "10.0.0.1, 10.0.0.2" # spring.data.elasticsearch.client.reactive.endpoints | |
password: "test-password" # spring.data.elasticsearch.client.reactive.password | |
use-ssl: "true" # spring.data.elasticsearch.client.reactive.use-ssl | |
username: "test-username" # spring.data.elasticsearch.client.reactive.username | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-app | |
data: | |
active: "mysql" # spring.profiles.active | |
banner-mode: "OFF" # spring.main.banner-mode | |
enabled: "false" # spring.reactor.debug-agent.enabled | |
time-zone: "GMT" # spring.jackson.time-zone | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: spring-petclinic | |
spec: | |
selector: | |
matchLabels: | |
app: spring-petclinic | |
template: | |
metadata: | |
labels: | |
app: spring-petclinic | |
spec: | |
containers: | |
- name: spring-petclinic | |
image: nebhale/spring-petclinic | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8081 | |
env: | |
- name: MANAGEMENT_SERVER_PORT | |
value: "8081" | |
livenessProbe: | |
httpGet: | |
path: /actuator/health/liveness | |
port: 8081 | |
readinessProbe: | |
httpGet: | |
path: /actuator/health/readiness | |
port: 8081 | |
lifecycle: | |
preStop: | |
exec: | |
command: ["sh", "-c", "sleep 1"] | |
volumeMounts: | |
- name: v-datasource | |
mountPath: /etc/config | |
- name: v-elasticsearch | |
mountPath: /etc/config | |
- name: v-app | |
mountPath: /etc/config | |
volumes: | |
- name: v-app | |
configMap: | |
name: cm-app | |
items: | |
- key: active | |
path: spring.profiles.active | |
- key: banner-mode | |
path: spring.main.banner-mode | |
- key: enabled | |
path: spring.reactor.debug-agent.enabled | |
- key: time-zone | |
path: spring.jackson.time-zone | |
- name: v-datasource | |
secret: | |
secretName: s-datasource | |
items: | |
- key: host | |
path: spring.datasource.host | |
- key: password | |
path: spring.datasource.password | |
- key: port | |
path: spring.datasource.port | |
- key: username | |
path: spring.datasource.username | |
- name: v-elasticsearch | |
secret: | |
secretName: s-elasticsearch | |
items: | |
- key: endpoints | |
path: spring.data.elasticsearch.client.reactive.endpoints | |
- key: password | |
path: spring.data.elasticsearch.client.reactive.password | |
- key: use-ssl | |
path: spring.data.elasticsearch.client.reactive.use-ssl | |
- key: username | |
path: spring.data.elasticsearch.client.reactive.username |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-datasource | |
type: Opaque | |
stringData: | |
host: "10.0.0.3" # spring.datasource.host | |
password: "test-password" # spring.datasource.password | |
port: "3309" # spring.datasource.port | |
username: "test-username" # spring.datasource.username | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-elasticsearch | |
type: Opaque | |
stringData: | |
endpoints: "10.0.0.1, 10.0.0.2" # spring.data.elasticsearch.client.reactive.endpoints | |
password: "test-password" # spring.data.elasticsearch.client.reactive.password | |
use-ssl: "true" # spring.data.elasticsearch.client.reactive.use-ssl | |
username: "test-username" # spring.data.elasticsearch.client.reactive.username | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-app | |
data: | |
spring.jackson.time-zone: "GMT" # spring.jackson.time-zone | |
spring.main.banner-mode: "OFF" # spring.main.banner-mode | |
spring.profiles.active: "mysql" # spring.profiles.active | |
spring.reactor.debug-agent.enabled: "false" # spring.reactor.debug-agent.enabled | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: spring-petclinic | |
spec: | |
selector: | |
matchLabels: | |
app: spring-petclinic | |
template: | |
metadata: | |
labels: | |
app: spring-petclinic | |
spec: | |
containers: | |
- name: spring-petclinic | |
image: nebhale/spring-petclinic | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8081 | |
env: | |
- name: MANAGEMENT_SERVER_PORT | |
value: "8081" | |
livenessProbe: | |
httpGet: | |
path: /actuator/health/liveness | |
port: 8081 | |
readinessProbe: | |
httpGet: | |
path: /actuator/health/readiness | |
port: 8081 | |
lifecycle: | |
preStop: | |
exec: | |
command: ["sh", "-c", "sleep 1"] | |
volumeMounts: | |
- name: v-datasource | |
mountPath: /etc/config | |
- name: v-elasticsearch | |
mountPath: /etc/config | |
- name: v-app | |
mountPath: /etc/config | |
volumes: | |
- name: v-app | |
configMap: | |
name: cm-app | |
- name: v-datasource | |
secret: | |
secretName: s-datasource | |
items: | |
- key: host | |
path: spring.datasource.host | |
- key: password | |
path: spring.datasource.password | |
- key: port | |
path: spring.datasource.port | |
- key: username | |
path: spring.datasource.username | |
- name: v-elasticsearch | |
secret: | |
secretName: s-elasticsearch | |
items: | |
- key: endpoints | |
path: spring.data.elasticsearch.client.reactive.endpoints | |
- key: password | |
path: spring.data.elasticsearch.client.reactive.password | |
- key: use-ssl | |
path: spring.data.elasticsearch.client.reactive.use-ssl | |
- key: username | |
path: spring.data.elasticsearch.client.reactive.username |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-data-elastic-search-client-reactive | |
type: Opaque | |
stringData: | |
endpoints: "10.0.0.1, 10.0.0.2" # spring.data.elasticsearch.client.reactive.endpoints | |
password: "test-password" # spring.data.elasticsearch.client.reactive.password | |
use-ssl: "true" # spring.data.elasticsearch.client.reactive.use-ssl | |
username: "test-username" # spring.data.elasticsearch.client.reactive.username | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: s-datasource | |
type: Opaque | |
stringData: | |
host: "10.0.0.3" # spring.datasource.host | |
password: "test-password" # spring.datasource.password | |
port: "3309" # spring.datasource.port | |
username: "test-username" # spring.datasource.username | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-jackson | |
data: | |
time-zone: "GMT" # spring.jackson.time-zone | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-main | |
data: | |
banner-mode: "OFF" # spring.main.banner-mode | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-profiles | |
data: | |
active: "mysql" # spring.profiles.active | |
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: cm-reactor-debug-agent | |
data: | |
enabled: "false" # spring.reactor.debug-agent.enabled | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: spring-petclinic | |
spec: | |
selector: | |
matchLabels: | |
app: spring-petclinic | |
template: | |
metadata: | |
labels: | |
app: spring-petclinic | |
spec: | |
containers: | |
- name: spring-petclinic | |
image: nebhale/spring-petclinic | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8081 | |
env: | |
- name: MANAGEMENT_SERVER_PORT | |
value: "8081" | |
livenessProbe: | |
httpGet: | |
path: /actuator/health/liveness | |
port: 8081 | |
readinessProbe: | |
httpGet: | |
path: /actuator/health/readiness | |
port: 8081 | |
lifecycle: | |
preStop: | |
exec: | |
command: ["sh", "-c", "sleep 1"] | |
volumeMounts: | |
- name: v-datasource | |
mountPath: /etc/config/spring/datasource | |
- name: v-data-elastic-search-client-reactive | |
mountPath: /etc/config/spring/data/elasticsearch/client/reactive | |
- name: v-jackson | |
mountPath: /etc/config/spring/jackson | |
- name: v-main | |
mountPath: /etc/config/spring/main | |
- name: v-profiles | |
mountPath: /etc/config/spring/profiles | |
- name: v-reactor-debug-agent | |
mountPath: /etc/config/spring/reactor/debug-agent | |
volumes: | |
- name: v-datasource | |
secret: | |
secretName: s-datasource | |
- name: v-data-elastic-search-client-reactive | |
secret: | |
secretName: s-data-elastic-search-client-reactive | |
- name: v-jackson | |
configMap: | |
name: cm-jackson | |
- name: v-main | |
configMap: | |
name: cm-main | |
- name: v-profiles | |
configMap: | |
name: cm-profiles | |
- name: v-reactor-debug-agent | |
configMap: | |
name: cm-reactor-debug-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment