Skip to content

Commit

Permalink
update kustomize files
Browse files Browse the repository at this point in the history
  • Loading branch information
LepkoQQ committed Sep 10, 2024
1 parent fb462ef commit 0852995
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 69 deletions.
21 changes: 21 additions & 0 deletions kustomize/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: consul-landing
labels:
app: consul-landing
spec:
replicas: 1
selector:
matchLabels:
app: consul-landing
template:
metadata:
labels:
app: consul-landing
spec:
containers:
- name: consul-landing
image: consul-landing
ports:
- containerPort: 80
68 changes: 0 additions & 68 deletions kustomize/frontend.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions kustomize/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: consul-landing
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
ingressClassName: nginx
tls:
- hosts:
- consul.djnd.si
- consul.danesjenovdan.si
secretName: consul-landing-tls
rules:
- host: consul.djnd.si
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: consul-landing
port:
number: 80
- host: consul.danesjenovdan.si
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: consul-landing
port:
number: 80
4 changes: 3 additions & 1 deletion kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: consul-landing
resources:
- frontend.yaml
- deployment.yaml
- ingress.yaml
- service.yaml
images:
- name: consul-landing
newName: rg.fr-par.scw.cloud/djnd/consul-landing
Expand Down
11 changes: 11 additions & 0 deletions kustomize/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: consul-landing
spec:
selector:
app: consul-landing
ports:
- protocol: TCP
port: 80
targetPort: 80

0 comments on commit 0852995

Please sign in to comment.