Skip to content

Commit

Permalink
k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
masebb committed Nov 25, 2023
1 parent 9de45ff commit e3a8d25
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
34 changes: 34 additions & 0 deletions manifest/app/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: powerfulfamily-deployment
labels:
app: powerfulfamily
spec:
replicas: 2
selector:
matchLabels:
app: powerfulfamily
template:
metadata:
labels:
app: powerfulfamily
spec:
containers:
- name: powerfulfamily
image: ghcr.io/masebb/powerfulfamily.net:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
labels:
name: powerfulfamily
name: powerfulfamily
spec:
selector:
app: powerfulfamily
ports:
- targetPort: http
port: 80
16 changes: 16 additions & 0 deletions manifest/app/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: powerfulfamily-ingress
spec:
ingressClassName: nginx
rules:
- http:
paths:
- backend:
service:
name: powerfulfamily
port:
number: 80
path: /
pathType: Prefix
23 changes: 23 additions & 0 deletions manifest/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: powerfulfamily.net
namespace: argocd
annotations:
argocd-image-updater.argoproj.io/write-back-method: argocd
argocd-image-updater.argoproj.io/image-list: app=ghcr.io/masebb/powerfulfamily.net:latest
argocd-image-updater.argoproj.io/app.update-strategy: latest
spec:
project: default
sources:
- repoURL: 'https://github.com/masebb/powerfulfamily.net.git'
targetRevision: HEAD
path: manifest/app/
destination:
server: 'https://kubernetes.default.svc'
namespace: powerfulfamily.net
syncPolicy:
syncOptions:
- Prune=true
- CreateNamespace=true
automated: {}

0 comments on commit e3a8d25

Please sign in to comment.