Initial Commit.

This commit is contained in:
2023-01-09 07:33:28 +02:00
parent e5cc8207e8
commit 5d06e769fb
6 changed files with 168 additions and 1 deletions

51
template/deployment.yaml Normal file
View File

@@ -0,0 +1,51 @@
apiVersion: v1
kind: Service
metadata:
name: {{k3sApp}}-{{k3sEnv}}-svc
namespace: {{k3sNamespace}}
spec:
type: NodePort
selector:
app: {{k3sApp}}-{{k3sEnv}}
ports:
- name: http
nodePort: {{k3sport}}
port: 5432
targetPort: 5432
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{k3sApp}}-{{k3sEnv}}
namespace: {{k3sNamespace}}
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
selector:
matchLabels:
app: {{k3sApp}}-{{k3sEnv}}
template:
metadata:
labels:
app: {{k3sApp}}-{{k3sEnv}}
delpoymentDate: "{{replaceMe}}"
spec:
containers:
- name: {{k3sApp}}-{{k3sEnv}}
image: 192.168.195.195:30000/{{k3sApp}}:{{k3sEnv}}
imagePullPolicy: Always
ports:
- name: http
containerPort: 5432
readinessProbe:
httpGet:
path: /
port: 5432
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1