[INIT]
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m31s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m31s
This commit is contained in:
16
.gitea/workflows/test.yaml
Normal file
16
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ github.actor }} teste le runner 🚀
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Explore-Gitea-Actions:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout du code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Dire bonjour
|
||||||
|
run: |
|
||||||
|
echo "Le runner fonctionne sur le cluster de Rémy !"
|
||||||
|
echo "Node actuel : $(hostname)"
|
||||||
|
echo "Date : $(date)"
|
||||||
58
application.yaml
Normal file
58
application.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# 1. Le Deployment (le pod Nginx)
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: hello-nginx
|
||||||
|
labels:
|
||||||
|
app: hello-nginx
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: hello-nginx
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: hello-nginx
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginxdemos/hello:plain-text
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hello-nginx-svc
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: hello-nginx
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: hello-world-ingress
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- test.remynln.fr
|
||||||
|
secretName: test-remynln-tls
|
||||||
|
rules:
|
||||||
|
- host: test.remynln.fr
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: hello-nginx-svc
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
Reference in New Issue
Block a user