File tree Expand file tree Collapse file tree 4 files changed +87
-0
lines changed
Expand file tree Collapse file tree 4 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : basvandriel-website-test
5+ spec :
6+ selector :
7+ matchLabels :
8+ app : basvandriel-website-test
9+ template :
10+ metadata :
11+ labels :
12+ app : basvandriel-website-test
13+ spec :
14+ containers :
15+ - name : website
16+ image : localhost:30050/basvandriel-website:test
17+ imagePullPolicy : Always
18+ ports :
19+ - containerPort : 80
20+ readinessProbe :
21+ httpGet :
22+ path : /
23+ port : 80
24+ initialDelaySeconds : 5
25+ periodSeconds : 5
26+ resources :
27+ requests :
28+ cpu : " 100m"
29+ memory : " 128Mi"
30+ limits :
31+ cpu : " 250m"
32+ memory : " 256Mi"
Original file line number Diff line number Diff line change 1+ apiVersion : networking.k8s.io/v1
2+ kind : Ingress
3+ metadata :
4+ name : basvandriel-website-ingress-test
5+ annotations :
6+ cert-manager.io/cluster-issuer : " letsencrypt-prod"
7+ spec :
8+ ingressClassName : nginx
9+ tls :
10+ - hosts :
11+ - bas.dev.vandriel.com
12+ secretName : basvandriel-website-tls-test
13+ rules :
14+ - host : bas.dev.vandriel.com
15+ http :
16+ paths :
17+ - backend :
18+ service :
19+ name : basvandriel-website-service-test
20+ port :
21+ number : 80
22+ path : /
23+ pathType : Prefix
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ name : basvandriel-website-service-test
5+ spec :
6+ selector :
7+ app : basvandriel-website-test
8+ ports :
9+ - protocol : TCP
10+ port : 80
11+ targetPort : 80
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ set -e
3+
4+ REGISTRY=vandriel.com:30050
5+ IMAGE=basvandriel-website
6+ TAG=test
7+
8+ # Build and push image
9+ docker buildx build --platform linux/amd64 -t $REGISTRY /$IMAGE :$TAG --push .
10+ docker push $REGISTRY /$IMAGE :$TAG
11+
12+
13+ # Apply manifests to test namespace
14+ kubectl apply -f basvandriel-website-deployment-test.yaml
15+ kubectl apply -f basvandriel-website-service-test.yaml
16+
17+ # Rollout restart (if using :test or static tag)
18+ kubectl rollout restart deployment/basvandriel-website-test
19+
20+ # Check status
21+ kubectl get pods
You can’t perform that action at this time.
0 commit comments