Testing
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m6s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m6s
This commit is contained in:
31
argo.yaml
31
argo.yaml
@@ -1,3 +1,26 @@
|
|||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
name: blog
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
description: Project for the blog application
|
||||||
|
sourceRepos:
|
||||||
|
- https://git.vanespen.dev/evanespen/blog
|
||||||
|
destinations:
|
||||||
|
- namespace: blog
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: "*"
|
||||||
|
kind: "*"
|
||||||
|
namespaceResourceWhitelist:
|
||||||
|
- group: "*"
|
||||||
|
kind: "*"
|
||||||
|
syncWindows: []
|
||||||
|
roles: []
|
||||||
|
|
||||||
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
@@ -7,12 +30,14 @@ spec:
|
|||||||
project: blog
|
project: blog
|
||||||
source:
|
source:
|
||||||
repoURL: "https://git.vanespen.dev/evanespen/blog"
|
repoURL: "https://git.vanespen.dev/evanespen/blog"
|
||||||
targetRevision: HEAD
|
targetRevision: testing-ci
|
||||||
# path: "k8s"
|
path: "k8s"
|
||||||
destination:
|
destination:
|
||||||
server: "https://kubernetes.default.svc"
|
server: "https://kubernetes.default.svc"
|
||||||
namespace: argocd
|
namespace: blog
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
selfHeal: true
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|||||||
42
k8s/deploy.yaml
Normal file
42
k8s/deploy.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: blog-pod
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: blog-container
|
||||||
|
image: git.vanespen.dev/evanespen/blog:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: blog-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: blog-pod
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
type: ClusterIP
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: blog-ingressroute
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`vanespen.dev`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: blog-service
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
certResolver: letsencrypt_dns
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: blog-pod
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: blog-container
|
|
||||||
image: git.vanespen.dev/evanespen/blog:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
Reference in New Issue
Block a user