💄 Fixes file formatting
This commit is contained in:
parent
4cff09e3c9
commit
a3ea1feb46
@ -16,24 +16,24 @@ spec:
|
|||||||
app: porty
|
app: porty
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: porty
|
- name: porty
|
||||||
image: gitea.svitan.dev/streamer272/svitan.dev:latest
|
image: gitea.svitan.dev/streamer272/svitan.dev:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
memory: "32Mi"
|
memory: "32Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
livenessProbe:
|
livenessProbe: # if liveness fails, container is restarted
|
||||||
httpGet:
|
httpGet:
|
||||||
port: 3000
|
port: 3000
|
||||||
path: /
|
path: /
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
42
k3s-pod.yaml
42
k3s-pod.yaml
@ -4,24 +4,24 @@ metadata:
|
|||||||
name: portfolio
|
name: portfolio
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gitea.svitan.dev/streamer272/svitan.dev:latest
|
- image: gitea.svitan.dev/streamer272/svitan.dev:latest
|
||||||
name: portfolio
|
name: portfolio
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
memory: "32Mi"
|
memory: "32Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
port: 3000
|
port: 3000
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
@ -6,8 +6,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: porty
|
app: porty
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 3000
|
port: 3000 # this is the port the users will access, so probably should be 80
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user