all repos — infra @ master

infrastructure manifests and setup notes

apps/imaginary/imaginary.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: imaginary
 5  labels:
 6    app: imaginary
 7spec:
 8  selector:
 9    matchLabels:
10      app: imaginary
11  template:
12    metadata:
13      labels:
14        app: imaginary
15    spec:
16      nodeSelector:
17        kubernetes.io/hostname: sini
18      containers:
19        - name: imaginary
20          image: h2non/imaginary:latest
21          imagePullPolicy: IfNotPresent
22          ports:
23            - name: http
24              containerPort: 9000
25          env:
26            - name: DEBUG
27              value: "*"
28          command: ["imaginary"]
29          args:
30            - -a
31            - 0.0.0.0
32            - -enable-url-source
33            - -allowed-origins
34            - http://files.garage.koti.lan/
35---
36apiVersion: v1
37kind: Service
38metadata:
39  name: imaginary
40spec:
41  selector:
42    app: imaginary
43  ports:
44    - name: imaginary-http
45      port: 9000
46      targetPort: 9000
47---
48apiVersion: networking.k8s.io/v1
49kind: Ingress
50metadata:
51  name: x.icyphox.sh
52  namespace: default
53  annotations:
54    cert-manager.io/cluster-issuer: "letsencrypt-prod"
55spec:
56  ingressClassName: nginx
57  tls:
58    - hosts:
59        - x.icyphox.sh
60      secretName: x-icyphox-sh-tls
61  rules:
62  - host: x.icyphox.sh
63    http:
64      paths:
65      - path: /fit
66        pathType: Prefix
67        backend:
68          service:
69            name: imaginary
70            port:
71              number: 9000
72      - path: /
73        pathType: Prefix
74        backend:
75          service:
76            name: garage
77            port:
78              number: 80