Skip to content

Commit 596b4b5

Browse files
committed
chore(kubernetes): move d2-live to argus
1 parent b88f2ce commit 596b4b5

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![Publish Status](https://github.com/Watt3r/d2-live/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/Watt3r/d2-live/actions/workflows/docker-publish.yml)
66
[![Build Status](https://github.com/Watt3r/d2-live/actions/workflows/build.yml/badge.svg)](https://github.com/Watt3r/d2-live/actions/workflows/build.yml)
7-
[![Uptime](https://atlas.lucas.tools/api/badge/2/uptime/240)](https://atlas.lucas.tools/)
7+
[![Uptime](https://argus.lucas.tools/api/badge/2/uptime/240)](https://argus.lucas.tools/)
88
[![License](https://img.shields.io/badge/License-MIT-orange.svg)](https://github.com/Watt3r/d2-live/blob/master/LICENSE)
99
[![Coverage Status](https://coveralls.io/repos/github/Watt3r/d2-live/badge.svg?branch=master)](https://coveralls.io/github/Watt3r/d2-live?branch=master)
1010
</div>
@@ -27,10 +27,10 @@ D2-Live is a dynamic tool for creating live, embeddable diagrams using the D2 la
2727
z: Fade into horizon
2828
```
2929
2. **Use D2-Playground**: Paste your diagram into [d2-playground](https://play.d2lang.com/).
30-
3. **Generate Live URL**: Change the URL domain to `d2.atlas.lucas.tools`. For example, `https://d2.atlas.lucas.tools/?script=<encoded_string>` gives you an SVG of your diagram.
30+
3. **Generate Live URL**: Change the URL domain to `d2.lucas.tools`. For example, `https://d2.lucas.tools/?script=<encoded_string>` gives you an SVG of your diagram.
3131
4. **Embed and Share**: The SVG diagram can be embedded and shared anywhere.
3232

33-
![Diagram Example](https://d2.atlas.lucas.tools/?script=LNExDsIwEETR3qf4nSt8ABeUSNCGCzhkRSxIHGUXiHN6ZET9NKORZotcx2ReuRfDCr1go9CLGktekwln_xZaFBWZ3cbhSHU10hWy8Smv59BoCiG42nSPXNLtQbf8FnttnZOgllZTt0dOaRDybIX_ge4bAAD__w%3D%3D)
33+
![Diagram Example](https://d2.lucas.tools/?script=FMwxDsIwDAXQPaf4Wyd6gAyMSLCWC7jUIhE0rmzTNjk9yvykd0Y8E_lgeIvDBTPDE2Nmc2xZyRn3YWfwzgpjLuHE5YoaasQkyI5Dft-l0zqOY6hdW8SDXh9MG6nKMVg_V4Y5qVtoETdaGLm4IInmJiX8AwAA__8%3D&)
3434

3535
You can use any of the [D2-Themes](https://d2lang.com/tour/themes) to customize the look of your diagram, just add `&theme=<theme_id>` to the URL.
3636

kubernetes/deployment.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: d2-live
5+
namespace: hyperion
56
spec:
67
selector:
78
matchLabels:
@@ -22,5 +23,16 @@ spec:
2223
ports:
2324
- name: web
2425
containerPort: 8090
26+
securityContext:
27+
allowPrivilegeEscalation: false
28+
capabilities:
29+
drop:
30+
- ALL
31+
runAsNonRoot: true
32+
runAsUser: 1000
33+
runAsGroup: 1000
34+
seccompProfile:
35+
type: RuntimeDefault
2536
imagePullSecrets:
2637
- name: github-container-registry
38+

kubernetes/ingress.yaml

+14-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,29 @@ apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
44
name: d2-live-ingress
5+
namespace: hyperion
56
annotations:
67
cert-manager.io/cluster-issuer: "letsencrypt-prod"
78
kubernetes.io/ingress.class: "nginx"
89

910
spec:
1011
tls:
1112
- hosts:
12-
- d2.atlas.lucas.tools
13+
- d2.argus.lucas.tools
14+
- d2.lucas.tools
1315
secretName: d2-tls
1416
rules:
15-
- host: d2.atlas.lucas.tools
17+
- host: d2.argus.lucas.tools
18+
http:
19+
paths:
20+
- path: /
21+
pathType: Prefix
22+
backend:
23+
service:
24+
name: d2-live
25+
port:
26+
name: web
27+
- host: d2.lucas.tools
1628
http:
1729
paths:
1830
- path: /

kubernetes/service.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: d2-live
5+
namespace: hyperion
56

67
spec:
78
ports:

0 commit comments

Comments
 (0)