Compare commits
124 Commits
5a530210c0
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
| e26c79a9d7 | |||
| ae1440fce3 | |||
| b58b5777fd | |||
| 83dfdc2cc3 | |||
| bbdb27b116 | |||
| 1da1328870 | |||
| 3b5ca4f5b0 | |||
| 1526648d9a | |||
| d1f723c135 | |||
| 423281d071 | |||
| 44fbc613a3 | |||
| a922531f50 | |||
| 9acebb67fe | |||
| e140319a05 | |||
| 3752da6ebe | |||
| 1937d2eaa1 | |||
| c2a8b5c797 | |||
| c584d39270 | |||
| 81e93b0e4e | |||
| 89f619eefa | |||
| b46848dd56 | |||
| 30e0bc2b87 | |||
| 903c17e7f8 | |||
| bd3cba05cb | |||
| 007f606bb6 | |||
| ef6262282d | |||
| 502182a370 | |||
| c6799a146a | |||
| 6bd60452f2 | |||
| 52e24bb8f2 | |||
| a8ad599af2 | |||
| 5dff86c4fa | |||
| 6a29032748 | |||
| 634ad82d2c | |||
| 59c08d2314 | |||
| 496e6b653d | |||
| 4c86a810da | |||
| 1ee31554ce | |||
| 3d1e3f29df | |||
| c03dc29446 | |||
| 24e439558f | |||
| 1917a60867 | |||
| c43ce20bbe | |||
| 26c90e1697 | |||
| a6a32817c5 | |||
| 03574c720f | |||
| 201850a3d4 | |||
| c8aef17e95 | |||
| 8c6b400a2d | |||
| 324e25c24b | |||
| cdeae28f27 | |||
| 671e8b986f | |||
| 176fdb2930 | |||
| a4822ec103 | |||
| dc79c658dd | |||
| c3c52965ed | |||
| 0ded289b1f | |||
| 83505ee117 | |||
| 06ed9d2bad | |||
| 84d18a4745 | |||
| 1fa3f6bb4b | |||
| eb681300c2 | |||
| 358d27464a | |||
| 49639fc1e2 | |||
| 4b8bf81c05 | |||
| d57b924425 | |||
| 6843b105b8 | |||
| e2d89c651a | |||
| abe5f37dc0 | |||
| 41d757a5e2 | |||
| 46606e3350 | |||
| 3887cd4843 | |||
| 1babfacede | |||
| eeac0b1e83 | |||
| 7fd69b8265 | |||
| 3f754b3614 | |||
| 3e590eed2c | |||
| be8db08307 | |||
| 2d4f851d23 | |||
| 7ee42ef018 | |||
| f5d3146bed | |||
| 00f7fa2d99 | |||
| 1d3f833b92 | |||
| f77157498a | |||
| 95faa86e6b | |||
| 1cb55e2eb9 | |||
| 077cdfd781 | |||
| 8f4ad5b421 | |||
| f4aa094a23 | |||
| ce9646ec92 | |||
| beb3f0926e | |||
| a2c75ad88d | |||
| a7fd41c852 | |||
| 64344f6142 | |||
| 55f20dd5c9 | |||
| d56728ecb2 | |||
| a9a87fe163 | |||
| 7a65783b63 | |||
| 114af926c8 | |||
| 88dc41052b | |||
| 5a91bbc22b | |||
| 3b637b3c76 | |||
| 48693e60c7 | |||
| 0874232e31 | |||
| c78640247d | |||
| d33891ab03 | |||
| 8a467ecb51 | |||
| 44ed625161 | |||
| f043ed5520 | |||
| 54909942a4 | |||
| 26ee7e85ff | |||
| 8a11987b8e | |||
| ac224fd665 | |||
| 36cab3f5ea | |||
| bcffc53708 | |||
| 0a0877dc4d | |||
| 4b71b16b78 | |||
| 331829b8e3 | |||
| 715bb919af | |||
| 4ea9b98fd7 | |||
| c7936e9131 | |||
| d58caf67e3 | |||
| f3ac2cbdb0 | |||
| 4a53a5ab2d |
@@ -12,7 +12,6 @@
|
|||||||
**/*.dbmdl
|
**/*.dbmdl
|
||||||
**/*.jfm
|
**/*.jfm
|
||||||
**/azds.yaml
|
**/azds.yaml
|
||||||
**/bin
|
|
||||||
**/charts
|
**/charts
|
||||||
**/docker-compose*
|
**/docker-compose*
|
||||||
**/Dockerfile*
|
**/Dockerfile*
|
||||||
@@ -27,4 +26,7 @@ README.md
|
|||||||
!.git/HEAD
|
!.git/HEAD
|
||||||
!.git/config
|
!.git/config
|
||||||
!.git/packed-refs
|
!.git/packed-refs
|
||||||
!.git/refs/heads/**
|
!.git/refs/heads/**
|
||||||
|
# Ensure the build output is NOT ignored
|
||||||
|
!**/bin/Release/**/publish/
|
||||||
|
!**/publish/
|
||||||
|
|||||||
118
.drone.yml
118
.drone.yml
@@ -1,86 +1,68 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: docker
|
||||||
name: build
|
name: build-and-package
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: false
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: dotnet restore
|
- name: build-test-publish
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: nexus.khongisa.co.za/sdk:10.0
|
||||||
commands:
|
commands:
|
||||||
- dotnet restore
|
- dotnet restore --source https://nexus.khongisa.co.za/repository/nuget-group/index.json --no-cache
|
||||||
|
- dotnet build --configuration Release --no-restore
|
||||||
|
- dotnet test --configuration Release --no-build
|
||||||
|
- dotnet publish --configuration Release --no-build
|
||||||
|
|
||||||
- name: dotnet build
|
- name: docker-build-and-push
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
||||||
commands:
|
|
||||||
- dotnet build --configuration Release
|
|
||||||
- ls ./SampleApi/bin/Release/net8.0/
|
|
||||||
|
|
||||||
- name: dotnet test
|
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
||||||
commands:
|
|
||||||
- dotnet test --configuration Release
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: package
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: dotnet publish
|
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
||||||
commands:
|
|
||||||
- dotnet publish --configuration Release
|
|
||||||
- ls ./SampleApi/bin/Release/net8.0/publish/
|
|
||||||
|
|
||||||
- name: docker build and push
|
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry-server.registry.svc.cluster.local:5000/sampleapi
|
registry: nexus.khongisa.co.za
|
||||||
auto_tag: true
|
repo: nexus.khongisa.co.za/webapitest
|
||||||
registry: registry-server.registry.svc.cluster.local:5000
|
tags: [ "${DRONE_BUILD_NUMBER}", "latest" ]
|
||||||
insecure: true
|
username: { from_secret: docker_username }
|
||||||
username:
|
password: { from_secret: docker_password }
|
||||||
from_secret: registry-username
|
|
||||||
password:
|
- name: vulnerability-scan
|
||||||
from_secret: registry-password
|
image: aquasec/trivy:0.50.1
|
||||||
dockerfile: Dockerfile
|
environment:
|
||||||
context: ./SampleApi/bin/Release/net8.0/publish/
|
TRIVY_USERNAME: { from_secret: docker_username }
|
||||||
|
TRIVY_PASSWORD: { from_secret: docker_password }
|
||||||
|
commands:
|
||||||
|
- trivy image --image-src remote --exit-code 1 --severity CRITICAL nexus.khongisa.co.za/webapitest:${DRONE_BUILD_NUMBER}
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- promote
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: docker
|
||||||
name: deploy
|
name: deploy-to-uat
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- package
|
- build-and-package
|
||||||
|
|
||||||
clone:
|
|
||||||
disable: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deploy via SSH
|
- name: uat-deployment
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host: lead.mngoma.lab
|
host: { from_secret: ssh_host }
|
||||||
username:
|
username: { from_secret: ssh_user }
|
||||||
from_secret: host-username
|
password: { from_secret: ssh_password }
|
||||||
password:
|
|
||||||
from_secret: host-password
|
|
||||||
port: 22
|
|
||||||
script:
|
script:
|
||||||
- set -euo pipefail
|
- echo $DOCKER_PASSWORD | docker login nexus.khongisa.co.za -u $DOCKER_USERNAME --password-stdin
|
||||||
- echo "Applying Kubernetes manifest via SSH..."
|
- docker pull nexus.khongisa.co.za/webapitest:latest
|
||||||
# Apply the manifest remotely via kubectl on the host
|
- docker stop webapi 2>/dev/null || true
|
||||||
- ssh -o StrictHostKeyChecking=no $DRONE_REMOTE_USER@lead.mngoma.lab 'kubectl apply -f -' <<'EOF'
|
- docker rm webapi 2>/dev/null || true
|
||||||
$(cat ./manifests/deploy.yml)
|
- docker run -d --name webapi --restart unless-stopped -e ASPNETCORE_ENVIRONMENT=Development -p 4000:8081 nexus.khongisa.co.za/webapitest:latest
|
||||||
EOF
|
environment:
|
||||||
- echo "Manifest applied successfully."
|
DOCKER_USERNAME: { from_secret: docker_username }
|
||||||
|
DOCKER_PASSWORD: { from_secret: docker_password }
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- staging
|
||||||
13
Dockerfile
13
Dockerfile
@@ -1,14 +1,11 @@
|
|||||||
#FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
FROM nexus.khongisa.co.za/aspnet:10.0 AS final
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:80 AS base
|
WORKDIR /app
|
||||||
|
|
||||||
USER app
|
USER app
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
EXPOSE 8080
|
COPY --chown=app:app ./SampleApi/bin/Release/net10.0/publish/ .
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
ENV ASPNETCORE_HTTP_PORTS=8081
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
FROM base AS final
|
|
||||||
WORKDIR /app
|
|
||||||
ENTRYPOINT ["dotnet", "SampleApi.dll"]
|
ENTRYPOINT ["dotnet", "SampleApi.dll"]
|
||||||
43
SampleApi/Controllers/DemoController.cs
Normal file
43
SampleApi/Controllers/DemoController.cs
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||||||
|
|
||||||
|
namespace SampleApi.Controllers
|
||||||
|
{
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
[ApiController]
|
||||||
|
public class DemoController : ControllerBase
|
||||||
|
{
|
||||||
|
// GET: api/<DemoController>
|
||||||
|
[HttpGet]
|
||||||
|
public IEnumerable<string> Get()
|
||||||
|
{
|
||||||
|
return new string[] { "value1", "value2" };
|
||||||
|
}
|
||||||
|
|
||||||
|
// GET api/<DemoController>/5
|
||||||
|
[HttpGet("{id}")]
|
||||||
|
public string Get(int id)
|
||||||
|
{
|
||||||
|
return "value";
|
||||||
|
}
|
||||||
|
|
||||||
|
// POST api/<DemoController>
|
||||||
|
[HttpPost]
|
||||||
|
public void Post([FromBody] string value)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// PUT api/<DemoController>/5
|
||||||
|
[HttpPut("{id}")]
|
||||||
|
public void Put(int id, [FromBody] string value)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// DELETE api/<DemoController>/5
|
||||||
|
[HttpDelete("{id}")]
|
||||||
|
public void Delete(int id)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,25 +1,22 @@
|
|||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
// Add services to the container.
|
|
||||||
|
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
|
||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
builder.Services.AddSwaggerGen();
|
builder.Services.AddSwaggerGen();
|
||||||
|
builder.Services.AddHealthChecks();
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
|
||||||
if (app.Environment.IsDevelopment())
|
if (app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseSwagger();
|
app.UseSwagger();
|
||||||
app.UseSwaggerUI();
|
app.UseSwaggerUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.MapHealthChecks("/health");
|
||||||
|
app.UseRouting();
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<UserSecretsId>cfe6b4ce-2d40-4273-b3a3-e4df67304fc5</UserSecretsId>
|
<UserSecretsId>cfe6b4ce-2d40-4273-b3a3-e4df67304fc5</UserSecretsId>
|
||||||
@@ -9,8 +9,9 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
<PackageReference Include="Polly" Version="8.6.6" />
|
||||||
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="10.1.7" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -5,4 +5,6 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8080:8081"
|
- "8081:8081"
|
||||||
|
environment:
|
||||||
|
- ASPNETCORE_ENVIRONMENT=Development
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: experiments
|
|
||||||
labels:
|
|
||||||
name: experiments
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-config
|
|
||||||
namespace: experiments
|
|
||||||
data:
|
|
||||||
appname: "SampleApi"
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: sampleapi
|
|
||||||
namespace: experiments
|
|
||||||
labels:
|
|
||||||
app: sampleapi
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: sampleapi
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: sampleapi
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: sampleapi
|
|
||||||
image: registry.registry.svc.cluster.local:5000/experiments/sampleapi:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8080
|
|
||||||
- name: https
|
|
||||||
containerPort: 8081
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "128Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: sampleapi
|
|
||||||
namespace: experiments
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: sampleapi
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
- name: https
|
|
||||||
port: 443
|
|
||||||
targetPort: 8081
|
|
||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-http
|
|
||||||
namespace: experiments
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
routes:
|
|
||||||
- match: Host(`sampleapi.apps.mngoma.lab`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: sampleapi
|
|
||||||
port: 80
|
|
||||||
scheme: http
|
|
||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-https
|
|
||||||
namespace: experiments
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`sampleapi.apps.mngoma.lab`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: sampleapi
|
|
||||||
port: 443
|
|
||||||
scheme: http
|
|
||||||
tls: {}
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
# namespace
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: experiments
|
|
||||||
labels:
|
|
||||||
name: experiments
|
|
||||||
---
|
|
||||||
# config map
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-configmap
|
|
||||||
namespace: experiments
|
|
||||||
data:
|
|
||||||
appname: "SampleApi"
|
|
||||||
---
|
|
||||||
# deployment
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-deployment
|
|
||||||
namespace: experiments
|
|
||||||
labels:
|
|
||||||
app: sampleapi
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: sampleapi
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: sampleapi
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: sampleapi
|
|
||||||
image: khwezi/mngomalab:latest
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
- name: https
|
|
||||||
containerPort: 8081
|
|
||||||
protocol: TCP
|
|
||||||
---
|
|
||||||
# service
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-service
|
|
||||||
namespace: experiments
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
selector:
|
|
||||||
app: sampleapi
|
|
||||||
app.kubernetes.io/instance: sampleapi
|
|
||||||
ports:
|
|
||||||
- port: 8080
|
|
||||||
targetPort: 80
|
|
||||||
- port: 8081
|
|
||||||
targetPort: 443
|
|
||||||
---
|
|
||||||
# ingress
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: sampleapi-ingress
|
|
||||||
namespace: experiments
|
|
||||||
annotations:
|
|
||||||
cert-manager.io/cluster-issuer: sampleapi-secret
|
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
||||||
cert-manager.io/private-key-size: "4096"
|
|
||||||
spec:
|
|
||||||
ingressClassName: nginx
|
|
||||||
rules:
|
|
||||||
- host: sampleapi.main.k3s.lab.mngoma.africa
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- pathType: Prefix
|
|
||||||
path: /
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: sampleapi-service
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- hosts:
|
|
||||||
- sampleapi.main.k3s.lab.mngoma.africa
|
|
||||||
secretName: sampleapi-secret
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user