Workers prod
This commit is contained in:
7
Workers/kube-manifests/CronJobs/Dev/1 - Secret.yaml
Normal file
7
Workers/kube-manifests/CronJobs/Dev/1 - Secret.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: api-key
|
||||
type: Opaque
|
||||
data:
|
||||
key: ZG9wX3YxXzJlMmFiMDMxYzNjMjVmMTI4ZjA2MGYwMThiZjM3OTc3YmUyYTc4N2FjMmQ2YmZiMTlhMjBmOTYxYmQ0NGRlYmY=
|
||||
26
Workers/kube-manifests/CronJobs/Dev/2 - CronJob.yaml
Normal file
26
Workers/kube-manifests/CronJobs/Dev/2 - CronJob.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: kuikwork-cron
|
||||
spec:
|
||||
schedule: "*/5 * * * *"
|
||||
concurrencyPolicy: Forbid
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: kuikwork-cron
|
||||
image: juampynr/digital-ocean-cronjob:latest
|
||||
env:
|
||||
- name: DIGITALOCEAN_ACCESS_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: api-key
|
||||
key: key
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- doctl kubernetes cluster kubeconfig save 6c15b3d8-c73f-4881-bc85-2f813b74e4db
|
||||
- POD_NAME=$(kubectl get pods -o=jsonpath='{.items[0].metadata.name}' -n dev-workers-ns -l app=dev-workers-ap)
|
||||
- kubectl exec -n dev-workers-ns POD_NAME -- php -v
|
||||
restartPolicy: OnFailure
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: dev-workers-pd
|
||||
image: registry.gitlab.com/articulacion/workers:dev-0.0.1
|
||||
image: registry.gitlab.com/articulacion/workers:dev
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
|
||||
10
Workers/kube-manifests/Prod/.dockerconfigjson
Normal file
10
Workers/kube-manifests/Prod/.dockerconfigjson
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"auths": {
|
||||
"https://registry.gitlab.com": {
|
||||
"username": "kube-puller",
|
||||
"password": "gldt-KsuiWhf3z4qBSyxnMXC8",
|
||||
"email": "jorge.sanchez@articulacion.com.co",
|
||||
"auth": "a3ViZS1wdWxsZXI6Z2xkdC1Lc3VpV2hmM3o0cUJTeXhuTVhDOA=="
|
||||
}
|
||||
}
|
||||
}
|
||||
4
Workers/kube-manifests/Prod/1 - namespace.yaml
Normal file
4
Workers/kube-manifests/Prod/1 - namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: prod-workers-ns
|
||||
8
Workers/kube-manifests/Prod/2 - gitlab-img.yaml
Normal file
8
Workers/kube-manifests/Prod/2 - gitlab-img.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: workers-gitlab-img
|
||||
namespace: prod-workers-ns
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
data:
|
||||
.dockerconfigjson: ewogICAgImF1dGhzIjogewogICAgICAgICJodHRwczovL3JlZ2lzdHJ5LmdpdGxhYi5jb20iOiB7CiAgICAgICAgICAgICJ1c2VybmFtZSI6ICJrdWJlLXB1bGxlciIsCiAgICAgICAgICAgICJwYXNzd29yZCI6ICJnbGR0LUtzdWlXaGYzejRxQlN5eG5NWEM4IiwKICAgICAgICAgICAgImVtYWlsIjogImpvcmdlLnNhbmNoZXpAYXJ0aWN1bGFjaW9uLmNvbS5jbyIsCiAgICAgICAgICAgICJhdXRoIjogImEzVmlaUzF3ZFd4c1pYSTZaMnhrZEMxTGMzVnBWMmhtTTNvMGNVSlRlWGh1VFZoRE9BPT0iCiAgICAgICAgfQogICAgfQp9Cg==
|
||||
30
Workers/kube-manifests/Prod/3 - deployment.yaml
Normal file
30
Workers/kube-manifests/Prod/3 - deployment.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prod-workers-dp
|
||||
namespace: prod-workers-ns
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: prod-workers-ap
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: prod-workers-ap
|
||||
spec:
|
||||
containers:
|
||||
- name: prod-workers-pd
|
||||
image: registry.gitlab.com/articulacion/workers:latest
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
memory: "100Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "150Gi"
|
||||
cpu: "150m"
|
||||
imagePullSecrets:
|
||||
- name: workers-gitlab-img
|
||||
Reference in New Issue
Block a user