@hed-hog/cli 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,44 @@
1
- apiVersion: apps/v1 kind: Deployment metadata: name: <%= config.appName %>-<%=
2
- app %> namespace: <%= config.namespace %> labels: app: <%= config.appName %>-<%=
3
- app %> spec: replicas: <%= config.appReplicas?.[app] ?? 2 %> selector:
4
- matchLabels: app: <%= config.appName %>-<%= app %> template: metadata: labels:
5
- app: <%= config.appName %>-<%= app %> spec: containers: - name: <%=
6
- config.appName %>-<%= app %> image: <%= config.containerRegistry %>/<%=
7
- config.appName %>-<%= app %>:latest ports: - containerPort: <%=
8
- config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %> env: - name: NODE_ENV
9
- value: "production" resources: requests: memory: "256Mi" cpu: "100m" limits:
10
- memory: "512Mi" cpu: "500m" livenessProbe: httpGet: path: <%= app === 'api' ?
11
- '/health' : '/' %> port: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 :
12
- 80) %> initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path:
13
- <%= app === 'api' ? '/health' : '/' %> port: <%= config.appPorts?.[app] ?? (app
14
- === 'api' ? 3000 : 80) %> initialDelaySeconds: 10 periodSeconds: 5
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ name: <%= config.appName %>-<%= app %>
5
+ namespace: <%= config.namespace %>
6
+ labels:
7
+ app: <%= config.appName %>-<%= app %>
8
+ spec:
9
+ replicas: <%= config.appReplicas?.[app] ?? 2 %>
10
+ selector:
11
+ matchLabels:
12
+ app: <%= config.appName %>-<%= app %>
13
+ template:
14
+ metadata:
15
+ labels:
16
+ app: <%= config.appName %>-<%= app %>
17
+ spec:
18
+ containers:
19
+ - name: <%= config.appName %>-<%= app %>
20
+ image: <%= config.containerRegistry %>/<%= config.appName %>-<%= app %>:latest
21
+ ports:
22
+ - containerPort: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %>
23
+ env:
24
+ - name: NODE_ENV
25
+ value: "production"
26
+ resources:
27
+ requests:
28
+ memory: "256Mi"
29
+ cpu: "100m"
30
+ limits:
31
+ memory: "512Mi"
32
+ cpu: "500m"
33
+ livenessProbe:
34
+ httpGet:
35
+ path: <%= app === 'api' ? '/health' : '/' %>
36
+ port: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %>
37
+ initialDelaySeconds: 30
38
+ periodSeconds: 10
39
+ readinessProbe:
40
+ httpGet:
41
+ path: <%= app === 'api' ? '/health' : '/' %>
42
+ port: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %>
43
+ initialDelaySeconds: 10
44
+ periodSeconds: 5
@@ -1,6 +1,16 @@
1
- apiVersion: v1 kind: Service metadata: name: <%= config.appName %>-<%= app %>
2
- namespace: <%= config.namespace %> labels: app: <%= config.appName %>-<%= app %>
3
- spec: type: ClusterIP ports: - port: <%= config.appPorts?.[app] ?? (app ===
4
- 'api' ? 3000 : 80) %> targetPort: <%= config.appPorts?.[app] ?? (app === 'api' ?
5
- 3000 : 80) %> protocol: TCP name: http selector: app: <%= config.appName %>-<%=
6
- app %>
1
+ apiVersion: v1
2
+ kind: Service
3
+ metadata:
4
+ name: <%= config.appName %>-<%= app %>
5
+ namespace: <%= config.namespace %>
6
+ labels:
7
+ app: <%= config.appName %>-<%= app %>
8
+ spec:
9
+ type: ClusterIP
10
+ ports:
11
+ - port: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %>
12
+ targetPort: <%= config.appPorts?.[app] ?? (app === 'api' ? 3000 : 80) %>
13
+ protocol: TCP
14
+ name: http
15
+ selector:
16
+ app: <%= config.appName %>-<%= app %>