gx10-gitops: capture live manifests for 32 product namespaces (ArgoCD adoption source)
This commit is contained in:
11
apps-gx10/fc-mysql/configmap-mysql-web-config.json
Normal file
11
apps-gx10/fc-mysql/configmap-mysql-web-config.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"data": {
|
||||
"appsettings.Production.json": "{\n \"MySqlManager\": {\n \"CrdNamespace\": \"fc-tenant-default\",\n \"MySqlImage\": \"iwrk-nexus.iamworkin.lan:8444/iwrk-ubuntu-mysql:master\",\n \"PhpMyAdminImage\": \"phpmyadmin/phpmyadmin:latest\",\n \"PhpMyAdminDomain\": \"iamworkin.lan\",\n \"Advisor\": {\n \"DefaultPreset\": \"medium\",\n \"AutoDetectPreset\": true,\n \"MaxAutoPreset\": \"medium\",\n \"PresetOverride\": null\n }\n },\n \"ContainerBackend\": {\n \"Default\": \"Kubernetes\"\n },\n \"FlowerCore\": {\n \"Auth\": {\n \"Provider\": \"Oidc\",\n \"Enabled\": false,\n \"Oidc\": {\n \"Enabled\": true,\n \"Authority\": \"https://id.iamworkin.lan/application/o/mysql/\",\n \"Audience\": \"mysql\",\n \"ClientId\": \"mysql\",\n \"ClientSecret\": \"\"\n }\n },\n \"Tenant\": {\n \"JwtClaimsEnabled\": false,\n \"TenantClaimType\": \"fc:tenant\",\n \"ActorIdClaimType\": \"flowercore_actor_id\"\n },\n \"Database\": {\n \"Provider\": \"Sqlite\",\n \"ConnectionStrings\": {\n \"Sqlite\": \"Data Source=/data/mysql-manager.db\"\n }\n }\n }\n}\n"
|
||||
},
|
||||
"kind": "ConfigMap",
|
||||
"metadata": {
|
||||
"name": "mysql-web-config",
|
||||
"namespace": "fc-mysql"
|
||||
}
|
||||
}
|
||||
209
apps-gx10/fc-mysql/deployment-mysql-web.json
Normal file
209
apps-gx10/fc-mysql/deployment-mysql-web.json
Normal file
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"metadata": {
|
||||
"labels": {
|
||||
"app.kubernetes.io/managed-by": "flowercore",
|
||||
"app.kubernetes.io/name": "mysql-web"
|
||||
},
|
||||
"name": "mysql-web",
|
||||
"namespace": "fc-mysql"
|
||||
},
|
||||
"spec": {
|
||||
"progressDeadlineSeconds": 600,
|
||||
"replicas": 1,
|
||||
"revisionHistoryLimit": 10,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"app.kubernetes.io/name": "mysql-web"
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "Recreate"
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"annotations": {
|
||||
"kubectl.kubernetes.io/restartedAt": "2026-04-17T19:52:14-05:00",
|
||||
"prometheus.io/path": "/metrics/prometheus",
|
||||
"prometheus.io/port": "5300",
|
||||
"prometheus.io/scrape": "true"
|
||||
},
|
||||
"labels": {
|
||||
"app.kubernetes.io/name": "mysql-web"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"env": [
|
||||
{
|
||||
"name": "FlowerCore__Auth__Enabled",
|
||||
"value": "false"
|
||||
},
|
||||
{
|
||||
"name": "FlowerCore__Auth__Oidc__Authority",
|
||||
"valueFrom": {
|
||||
"secretKeyRef": {
|
||||
"key": "issuer_url",
|
||||
"name": "mysql-oidc-client",
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "FlowerCore__Auth__Oidc__ClientId",
|
||||
"valueFrom": {
|
||||
"secretKeyRef": {
|
||||
"key": "client_id",
|
||||
"name": "mysql-oidc-client",
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "FlowerCore__Auth__Oidc__ClientSecret",
|
||||
"valueFrom": {
|
||||
"secretKeyRef": {
|
||||
"key": "client_secret",
|
||||
"name": "mysql-oidc-client",
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "FlowerCore__Auth__Oidc__Audience",
|
||||
"value": "mysql"
|
||||
}
|
||||
],
|
||||
"image": "localhost/fc-mysql-web:gx10-v1",
|
||||
"imagePullPolicy": "Never",
|
||||
"livenessProbe": {
|
||||
"failureThreshold": 3,
|
||||
"httpGet": {
|
||||
"path": "/metrics/prometheus",
|
||||
"port": 5300,
|
||||
"scheme": "HTTP"
|
||||
},
|
||||
"initialDelaySeconds": 20,
|
||||
"periodSeconds": 30,
|
||||
"successThreshold": 1,
|
||||
"timeoutSeconds": 1
|
||||
},
|
||||
"name": "mysql-web",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 5300,
|
||||
"protocol": "TCP"
|
||||
}
|
||||
],
|
||||
"readinessProbe": {
|
||||
"failureThreshold": 3,
|
||||
"httpGet": {
|
||||
"path": "/metrics/prometheus",
|
||||
"port": 5300,
|
||||
"scheme": "HTTP"
|
||||
},
|
||||
"initialDelaySeconds": 10,
|
||||
"periodSeconds": 10,
|
||||
"successThreshold": 1,
|
||||
"timeoutSeconds": 1
|
||||
},
|
||||
"resources": {
|
||||
"limits": {
|
||||
"cpu": "500m",
|
||||
"memory": "512Mi"
|
||||
},
|
||||
"requests": {
|
||||
"cpu": "100m",
|
||||
"memory": "128Mi"
|
||||
}
|
||||
},
|
||||
"securityContext": {
|
||||
"allowPrivilegeEscalation": false,
|
||||
"capabilities": {
|
||||
"drop": [
|
||||
"ALL"
|
||||
]
|
||||
},
|
||||
"readOnlyRootFilesystem": true
|
||||
},
|
||||
"terminationMessagePath": "/dev/termination-log",
|
||||
"terminationMessagePolicy": "File",
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/data",
|
||||
"name": "data"
|
||||
},
|
||||
{
|
||||
"mountPath": "/tmp",
|
||||
"name": "tmp"
|
||||
},
|
||||
{
|
||||
"mountPath": "/app/logs",
|
||||
"name": "logs"
|
||||
},
|
||||
{
|
||||
"mountPath": "/app/appsettings.Production.json",
|
||||
"name": "config",
|
||||
"readOnly": true,
|
||||
"subPath": "appsettings.Production.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"dnsConfig": {
|
||||
"nameservers": [
|
||||
"10.43.0.10"
|
||||
],
|
||||
"options": [
|
||||
{
|
||||
"name": "ndots",
|
||||
"value": "2"
|
||||
}
|
||||
],
|
||||
"searches": [
|
||||
"fc-mysql.svc.cluster.local",
|
||||
"svc.cluster.local",
|
||||
"cluster.local"
|
||||
]
|
||||
},
|
||||
"dnsPolicy": "None",
|
||||
"restartPolicy": "Always",
|
||||
"schedulerName": "default-scheduler",
|
||||
"securityContext": {
|
||||
"fsGroup": 1654,
|
||||
"runAsGroup": 1654,
|
||||
"runAsNonRoot": true,
|
||||
"runAsUser": 1654
|
||||
},
|
||||
"serviceAccount": "mysql-web",
|
||||
"serviceAccountName": "mysql-web",
|
||||
"terminationGracePeriodSeconds": 30,
|
||||
"volumes": [
|
||||
{
|
||||
"name": "data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "mysql-web-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"emptyDir": {},
|
||||
"name": "tmp"
|
||||
},
|
||||
{
|
||||
"emptyDir": {},
|
||||
"name": "logs"
|
||||
},
|
||||
{
|
||||
"configMap": {
|
||||
"defaultMode": 420,
|
||||
"name": "mysql-web-config"
|
||||
},
|
||||
"name": "config"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
29
apps-gx10/fc-mysql/ingressroute-mysql-web.json
Normal file
29
apps-gx10/fc-mysql/ingressroute-mysql-web.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"apiVersion": "traefik.io/v1alpha1",
|
||||
"kind": "IngressRoute",
|
||||
"metadata": {
|
||||
"name": "mysql-web",
|
||||
"namespace": "fc-mysql"
|
||||
},
|
||||
"spec": {
|
||||
"entryPoints": [
|
||||
"websecure"
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"kind": "Rule",
|
||||
"match": "Host(`mysql.iamworkin.lan`)",
|
||||
"priority": 100,
|
||||
"services": [
|
||||
{
|
||||
"name": "mysql-web",
|
||||
"port": 5300
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"tls": {
|
||||
"secretName": "mysql-web-tls"
|
||||
}
|
||||
}
|
||||
}
|
||||
23
apps-gx10/fc-mysql/service-mysql-web.json
Normal file
23
apps-gx10/fc-mysql/service-mysql-web.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Service",
|
||||
"metadata": {
|
||||
"name": "mysql-web",
|
||||
"namespace": "fc-mysql"
|
||||
},
|
||||
"spec": {
|
||||
"internalTrafficPolicy": "Cluster",
|
||||
"ports": [
|
||||
{
|
||||
"port": 5300,
|
||||
"protocol": "TCP",
|
||||
"targetPort": 5300
|
||||
}
|
||||
],
|
||||
"selector": {
|
||||
"app.kubernetes.io/name": "mysql-web"
|
||||
},
|
||||
"sessionAffinity": "None",
|
||||
"type": "ClusterIP"
|
||||
}
|
||||
}
|
||||
8
apps-gx10/fc-mysql/serviceaccount-mysql-web.json
Normal file
8
apps-gx10/fc-mysql/serviceaccount-mysql-web.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "ServiceAccount",
|
||||
"metadata": {
|
||||
"name": "mysql-web",
|
||||
"namespace": "fc-mysql"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user