feat(jenkins): adding new default jenkins configuration

This commit is contained in:
2023-06-19 13:58:25 +02:00
parent 69c6b35d17
commit aeb5a75cf1
20 changed files with 97 additions and 71 deletions

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./resources/myapplication-service.yaml
- ./resources/myapplication-deployment.yaml

View File

@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: myapplication
name: myapplication
spec:
replicas: 3
selector:
matchLabels:
io.kompose.service: myapplication
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: myapplication
spec:
restartPolicy: Always
containers:
- image: reg.cadoles.com/cadoles/myapplication-kube
imagePullPolicy: Always
name: myapplication-php-fpm
args: ["/usr/sbin/php-fpm81", "-F", "-e"]
resources: {}
env:
- name: PHP_FPM_LISTEN
value: 127.0.0.1:9000
- name: PHP_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_MEMORY_LIMIT
value: 128m
- name: PHP_FPM_LOG_LEVEL
value: warning
- name: myapplication_DATABASE_SERVICE_NAME
value: $(myapplication_DATABASE_SERVICE_NAME)-rw
- image: reg.cadoles.com/cadoles/myapplication-kube
imagePullPolicy: Always
name: myapplication-nginx
args: ["/usr/sbin/nginx"]
env:
- name: NGINX_myapplication_UPSTREAM_BACKEND_SERVER
value: 127.0.0.1:9000
- name: NGINX_myapplication_ROOT
value: "/public"
- name: NGINX_myapplication_PHP_INDEX
value: "/index.php"
- name: NGINX_ERROR_LOG_LEVEL
value: "warn"
- name: NGINX_myapplication_PHP_NON_FILE_PATTERN
value: "^/index\\.php(/|$)"
ports:
- containerPort: 8080
resources: {}

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
io.kompose.service: myapplication
name: myapplication
spec:
type: ClusterIP
ports:
- name: myapplication-http
port: 80
targetPort: 8080
selector:
io.kompose.service: myapplication