casa-vlan-cicd-runners - kustomization implementation
This commit is contained in:
103
services/casa-vlan-cicd-runners/deploy/deployment.yaml
Normal file
103
services/casa-vlan-cicd-runners/deploy/deployment.yaml
Normal file
@@ -0,0 +1,103 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: casa-vlan-cicd-runners
|
||||
labels:
|
||||
app: casa-vlan-cicd-runners
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: casa-vlan-cicd-runners
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: casa-vlan-cicd-runners
|
||||
spec:
|
||||
nodeSelector:
|
||||
role: worker-node
|
||||
containers:
|
||||
- name: mylimbo-casa-vlan-cicd-runner
|
||||
image: git.limbosolutions.com/kb/gitea/act_runner:0.2.13-network-stack
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: "trace"
|
||||
|
||||
- name: CONFIG_FILE
|
||||
value: /config.yaml
|
||||
- name: GITEA_INSTANCE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_INSTANCE_URL
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_MYLIMBO_RUNNER_REGISTRATION_TOKEN
|
||||
- name: GITEA_RUNNER_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_MYLIMBO_RUNNER_NAME
|
||||
|
||||
- name: GITEA_RUNNER_EPHEMERAL
|
||||
value: "0"
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "400m"
|
||||
volumeMounts:
|
||||
- name: config-map
|
||||
mountPath: /config.yaml
|
||||
subPath: config.yaml
|
||||
|
||||
- name: mf-casa-vlan-cicd-runner
|
||||
image: git.limbosolutions.com/kb/gitea/act_runner:0.2.13-network-stack
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: "trace"
|
||||
|
||||
- name: CONFIG_FILE
|
||||
value: /config.yaml
|
||||
- name: GITEA_INSTANCE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_INSTANCE_URL
|
||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_MF_RUNNER_REGISTRATION_TOKEN
|
||||
- name: GITEA_RUNNER_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: casa-vlan-cicd-runners
|
||||
key: GITEA_MF_RUNNER_NAME
|
||||
|
||||
- name: GITEA_RUNNER_EPHEMERAL
|
||||
value: "0"
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: " 512Mi"
|
||||
cpu: "400m"
|
||||
volumeMounts:
|
||||
- name: config-map
|
||||
mountPath: /config.yaml
|
||||
subPath: config.yaml
|
||||
|
||||
|
||||
volumes:
|
||||
- name: config-map
|
||||
configMap:
|
||||
name: casa-vlan-cicd-runners
|
||||
Reference in New Issue
Block a user