/k8s

To get this branch, use:
bzr branch https://code.breezy-vcs.org/k8s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
apiVersion: apps/v1
kind: Deployment
metadata:
 namespace: breezy
 name: loggerhead
 labels:
    app.kubernetes.io/instance: breezy-site
spec:
 strategy:
   rollingUpdate:
     maxSurge: 1
     maxUnavailable: 1
   type: RollingUpdate
 replicas: 1
 selector:
   matchLabels:
     app: loggerhead
 template:
   metadata:
     labels:
       app: loggerhead
   spec:
     containers:
       - name: loggerhead
         image: ghcr.io/breezy-team/loggerhead
         imagePullPolicy: Always
         resources:
           limits:
             cpu: "4"
             memory: "8G"
           requests:
             cpu: "500m"
             memory: "600M"
         ports:
           - containerPort: 8080
         volumeMounts:
           - name: code-volume
             mountPath: /code
     volumes:
        - name: code-volume
          persistentVolumeClaim:
            claimName: code
---
apiVersion: v1
kind: Service
metadata:
  namespace: breezy
  name: loggerhead
  labels:
    app.kubernetes.io/instance: breezy-site
spec:
  ports:
    - port: 8080
  selector:
    app: loggerhead
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: loggerhead
  namespace: breezy
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
  labels:
    app.kubernetes.io/instance: breezy-site
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - code.breezy-vcs.org
    secretName: code-tls
  rules:
  - host: code.breezy-vcs.org
    http:
      paths:
      - backend:
          service:
            name: loggerhead
            port:
              number: 8080
        path: /
        pathType: Prefix