Clean static site manifests
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: static-site-html
|
||||
namespace: default
|
||||
data:
|
||||
index.html: |
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><title>Hello from GitOps!</title></head>
|
||||
<body>
|
||||
<h1>🚀 First Level: Static Site</h1>
|
||||
<p>Deployed via Argo CD + Kyverno</p>
|
||||
<p>Image: harbor.apps.kopikopi.com.ru/drone/test:latest</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,7 +5,6 @@ metadata:
|
||||
namespace: default
|
||||
labels:
|
||||
app: static-site
|
||||
app.kubernetes.io/part-of: static-site
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
@@ -15,17 +14,9 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: static-site
|
||||
app.kubernetes.io/part-of: static-site
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: harbor.apps.kopikopi.com.ru/drone/test:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: html
|
||||
mountPath: /usr/share/nginx/html
|
||||
volumes:
|
||||
- name: html
|
||||
configMap:
|
||||
name: static-site-html
|
||||
|
||||
@@ -5,7 +5,6 @@ metadata:
|
||||
namespace: default
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: default
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
- configmap.yaml
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
apiVersion: core.oam.dev/v1beta1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: static-site
|
||||
namespace: default
|
||||
annotations:
|
||||
# Автоматическое обновление при изменении
|
||||
argocd.argoproj.io/sync-wave: "0"
|
||||
spec:
|
||||
components:
|
||||
- name: frontend
|
||||
type: webservice
|
||||
properties:
|
||||
image: harbor.apps.kopikopi.com.ru/drone/test:latest
|
||||
ports:
|
||||
- port: 80
|
||||
expose: true
|
||||
traits:
|
||||
- type: ingress
|
||||
properties:
|
||||
domain: static.apps.kopikopi.com.ru
|
||||
http:
|
||||
"/": 80
|
||||
tls:
|
||||
enabled: true
|
||||
secretName: static-tls
|
||||
Reference in New Issue
Block a user