Created
February 22, 2022 11:16
-
-
Save markround/88de8fe86dc44c9baae724db0e4a84cd to your computer and use it in GitHub Desktop.
Petclinic sample app
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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: petclinic | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: petclinic-app | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: petclinic-app | |
spec: | |
containers: | |
- name: app | |
image: markdr/spring-petclinic:2.6.0-SNAPSHOT-4 | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: petclinic | |
namespace: default | |
spec: | |
type: ClusterIP | |
ports: | |
- port: 8080 | |
name: http | |
protocol: TCP | |
selector: | |
app: petclinic-app | |
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: petclinic-ingress | |
namespace: default | |
annotations: | |
cert-manager.io/cluster-issuer: selfsigned-cluster-issuer | |
spec: | |
rules: | |
- host: petclinic.tkgs-cluster-1.mark-ns.lab.mark.eek | |
http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: petclinic | |
port: | |
number: 8080 | |
tls: | |
- hosts: | |
- petclinic.tkgs-cluster-1.mark-ns.lab.mark.eek | |
secretName: testingress-cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment