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
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: static-site
|
app: static-site
|
||||||
app.kubernetes.io/part-of: static-site
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -15,17 +14,9 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: static-site
|
app: static-site
|
||||||
app.kubernetes.io/part-of: static-site
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: harbor.apps.kopikopi.com.ru/drone/test:latest
|
image: harbor.apps.kopikopi.com.ru/drone/test:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- 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
|
namespace: default
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
tls:
|
tls:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: default
|
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- ingress.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