-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added examples for K8s single-pod Deployment (#1406)
Co-authored-by: William Miceli <[email protected]>
- Loading branch information
1 parent
0139dda
commit f953fcf
Showing
18 changed files
with
155 additions
and
7 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
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions
52
docs/modules/setup/examples/k8s-single-pod/kroki-deployment.yaml
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,52 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: kroki | ||
labels: | ||
app: kroki | ||
|
||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: kroki | ||
template: | ||
metadata: | ||
labels: | ||
app: kroki | ||
spec: | ||
containers: | ||
- name: kroki | ||
image: docker.io/yuzutech/kroki:latest | ||
env: | ||
- name: KROKI_BLOCKDIAG_HOST | ||
value: localhost | ||
- name: KROKI_MERMAID_HOST | ||
value: localhost | ||
- name: KROKI_BPMN_HOST | ||
value: localhost | ||
- name: KROKI_EXCALIDRAW_HOST | ||
value: localhost | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8000 | ||
- name: kroki-blockdiag | ||
image: docker.io/yuzutech/kroki-blockdiag:latest | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8001 | ||
- name: kroki-mermaid | ||
image: docker.io/yuzutech/kroki-mermaid:latest | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8002 | ||
- name: kroki-bpmn | ||
image: docker.io/yuzutech/kroki-bpmn:latest | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8003 | ||
- name: kroki-excalidraw | ||
image: docker.io/yuzutech/kroki-excalidraw:latest | ||
ports: | ||
- protocol: TCP | ||
containerPort: 8004 |
16 changes: 16 additions & 0 deletions
16
docs/modules/setup/examples/k8s-single-pod/kroki-ingress.yaml
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,16 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: kroki | ||
|
||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/" | ||
backend: | ||
service: | ||
name: kroki | ||
port: | ||
number: 8000 |
14 changes: 14 additions & 0 deletions
14
docs/modules/setup/examples/k8s-single-pod/kroki-service.yaml
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,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: kroki | ||
labels: | ||
app: kroki | ||
|
||
spec: | ||
ports: | ||
- name: "8000" | ||
port: 8000 | ||
targetPort: 8000 | ||
selector: | ||
app: kroki |
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