Skip to content

Commit

Permalink
change url + add k8s file
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Aug 12, 2024
1 parent a13cf7c commit 401aa07
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
with:
context: .
push: true
tags: kerberos/redirect-docker:${{ github.ref_name }}
tags: kerberos/joinslack:${{ github.ref_name }}
68 changes: 68 additions & 0 deletions kubernetes-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

apiVersion: v1
kind: Service
metadata:
name: joinslack-svc
labels:
app: joinslack-svc
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
name: http
selector:
app: joinslack
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: joinslack-ingress
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- "joinslack.kerberos.io"
secretName: joinslack
rules:
- host: "joinslack.kerberos.io"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: joinslack-svc
port:
number: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: joinslack
spec:
replicas: 1
selector:
matchLabels:
app: joinslack
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: joinslack
spec:
containers:
- name: joinslack
image: "kerberos/joinslack"
ports:
- containerPort: 80
name: http

0 comments on commit 401aa07

Please sign in to comment.