issue-14: modification Dockerfile + structure k8S (à compléter)
All checks were successful
Cadoles/hydra-sql/pipeline/pr-develop This commit looks good
All checks were successful
Cadoles/hydra-sql/pipeline/pr-develop This commit looks good
This commit is contained in:
11
misc/images/hydra-sql-kube/Dockerfile
Normal file
11
misc/images/hydra-sql-kube/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
ARG ADDITIONAL_PACKAGES="
|
||||
bash
|
||||
mysql-client
|
||||
php81-cli
|
||||
php81-pdo_pgsql
|
||||
php81-pdo_mysql
|
||||
php81-mysqli
|
||||
php81-pgsql
|
||||
"
|
||||
|
||||
FROM reg.cadoles.com/cadoles/symfony:alpine-php-8.1-base
|
11
misc/images/hydra-sql-standalone/Dockerfile
Normal file
11
misc/images/hydra-sql-standalone/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
ARG ADDITIONAL_PACKAGES="
|
||||
bash
|
||||
mysql-client
|
||||
php81-cli
|
||||
php81-pdo_pgsql
|
||||
php81-pdo_mysql
|
||||
php81-mysqli
|
||||
php81-pgsql
|
||||
"
|
||||
|
||||
FROM reg.cadoles.com/cadoles/symfony:alpine-php-8.1-standalone
|
11
misc/images/k8s/kind/cluster/kustomization.yaml
Normal file
11
misc/images/k8s/kind/cluster/kustomization.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- https://raw.githubusercontent.com/ory/k8s/v0.30.0/helm/charts/hydra-maester/crds/crd-oauth2clients.yaml
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/cloudnative-pg-operator?ref=develop
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/redis?ref=develop
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/minio?ref=develop
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/metallb?ref=develop
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/metrics?ref=develop
|
||||
- https://forge.cadoles.com/CadolesKube/c-kustom//base/nginx?ref=develop
|
7
misc/images/k8s/kind/cluster/lb/kustomization.yaml
Normal file
7
misc/images/k8s/kind/cluster/lb/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: metallb-system
|
||||
|
||||
resources:
|
||||
- ./resources/ipaddresspoool.yaml
|
||||
- ./resources/advertise.yaml
|
9
misc/images/k8s/kind/cluster/lb/resources/advertise.yaml
Normal file
9
misc/images/k8s/kind/cluster/lb/resources/advertise.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: L2Advertisement
|
||||
metadata:
|
||||
name: l2-ip-pool-ad
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
ipAddressPools:
|
||||
- main-pool
|
||||
|
@ -0,0 +1,8 @@
|
||||
apiVersion: metallb.io/v1beta1
|
||||
kind: IPAddressPool
|
||||
metadata:
|
||||
name: main-pool
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
addresses:
|
||||
- 172.18.10.100-172.18.10.200
|
48
misc/images/k8s/kind/kind-cluster.yaml
Normal file
48
misc/images/k8s/kind/kind-cluster.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
kind: Cluster
|
||||
apiVersion: kind.x-k8s.io/v1alpha4
|
||||
name: hydra-sql
|
||||
networking:
|
||||
podSubnet: "10.110.0.0/16"
|
||||
serviceSubnet: "10.115.0.0/16"
|
||||
nodes:
|
||||
- role: control-plane
|
||||
image: kindest/node:v1.27.2
|
||||
kubeadmConfigPatches:
|
||||
- |
|
||||
kind: InitConfiguration
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
node-labels: "ingress-ready=true"
|
||||
extraPortMappings:
|
||||
- containerPort: 31000
|
||||
hostPort: 31000
|
||||
listenAddress: "0.0.0.0" # Optional, defaults to "0.0.0.0"
|
||||
- containerPort: 80
|
||||
hostPort: 8080
|
||||
listenAddress: "0.0.0.0" # Optional, defaults to "0.0.0.0"
|
||||
labels:
|
||||
ingress-ready: true
|
||||
- role: worker
|
||||
image: kindest/node:v1.27.2
|
||||
kubeadmConfigPatches:
|
||||
- |
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
system-reserved: memory=2Gi
|
||||
- role: worker
|
||||
image: kindest/node:v1.27.2
|
||||
kubeadmConfigPatches:
|
||||
- |
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
system-reserved: memory=2Gi
|
||||
- role: worker
|
||||
image: kindest/node:v1.27.2
|
||||
kubeadmConfigPatches:
|
||||
- |
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
system-reserved: memory=2Gi
|
Reference in New Issue
Block a user