Skip to content

Commit

Permalink
feat: k8s arquivos de manifesto
Browse files Browse the repository at this point in the history
  • Loading branch information
bgastaldi committed Oct 14, 2021
1 parent ece2d7c commit eca5f5e
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
61 changes: 61 additions & 0 deletions docker-server-cli-k8s/k8s_01/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: server-cli
spec:
replicas: 1
selector:
matchLabels:
app: server-cli
template:
metadata:
labels:
app: server-cli
spec:
containers:
- name: server-cli
image: wppconnect/server-cli:latest
command: ["/bin/sh", "-c"]
args:
["wppserver --secretKey My53cr3tKY --port 21465 --startAllSession"]
volumeMounts:
- mountPath: /home/tokens
name: server-cli-volume
ports:
- containerPort: 21465

resources:
requests:
cpu: "0.5"
memory: "500Mi"
limits:
cpu: "0.5"
memory: "1Gi"

startupProbe:
httpGet:
path: /healthz
port: 21465
periodSeconds: 3
failureThreshold: 60

readinessProbe:
httpGet:
path: /healthz
port: 21465
periodSeconds: 3
failureThreshold: 1

livenessProbe:
httpGet:
path: /healthz
port: 21465
periodSeconds: 5
failureThreshold: 1
timeoutSeconds: 1
successThreshold: 1

volumes:
- name: server-cli-volume
persistentVolumeClaim:
claimName: server-cli-volume
10 changes: 10 additions & 0 deletions docker-server-cli-k8s/k8s_01/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: server-cli-volume
spec:
resources:
requests:
storage: 1Gi
accessModes:
- ReadWriteOnce
11 changes: 11 additions & 0 deletions docker-server-cli-k8s/k8s_01/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: wppconnect
spec:
selector:
app: server-cli
ports:
- port: 8080
targetPort: 21465
type: LoadBalancer

0 comments on commit eca5f5e

Please sign in to comment.