Skip to content
Snippets Groups Projects
Verified Commit f49efd4a authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

add kubernetes files

parent e65041f1
Branches
No related tags found
No related merge requests found
Pipeline #3226 passed
*
!docs/
!mkdocs*
*~
*.bak
# Kubernetes a KSZK-ban weboldal # Kubernetes a KSZK-ban weboldal
Megtalálod itt: kubernetes.sch.bme.hu [Megtalálod itt](kubernetes.sch.bme.hu)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Weboldal generálás ## Weboldal generálás
Ez a repo [MkDocs](https://www.mkdocs.org/) segítségével generál statikus HTML Ez a repo [MkDocs](https://www.mkdocs.org/) segítségével generál statikus HTML
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: __APP_NAME__
namespace: __K8S_NAMESPACE__
labels:
app: __APP_NAME__
spec:
replicas: 1
selector:
matchLabels:
app: __APP_NAME__
strategy:
type: Recreate
template:
metadata:
labels:
app: __APP_NAME__
spec:
containers:
- image: __CONTAINER_IMAGE__
name: __APP_NAME__
ports:
- containerPort: __WEB_PORT__
\ No newline at end of file
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
name: __APP_NAME__
namespace: __K8S_NAMESPACE__
labels:
app: __APP_NAME__
spec:
rules:
- host: kubernetes.sch.bme.hu
http:
paths:
- backend:
serviceName: __APP_NAME__
servicePort: __WEB_PORT__
path: /
# tls:
# - hosts:
# - your_website.k8s.sch.bme.hu
# secretName: cert-your-website
apiVersion: v1
kind: Service
metadata:
name: __APP_NAME__
namespace: __K8S_NAMESPACE__
labels:
app: __APP_NAME__
spec:
ports:
- name: __APP_NAME__
port: __WEB_PORT__
targetPort: __WEB_PORT__
protocol: TCP
selector:
app: __APP_NAME__
type: ClusterIP
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment