add manifets deployment
This commit is contained in:
		
							
								
								
									
										26
									
								
								k8s/staging/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								k8s/staging/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: bots-frontend | ||||
|   namespace: cariparkir-staging | ||||
| spec: | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: bots-frontend | ||||
|   replicas: 1 | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: bots-frontend | ||||
|     spec: | ||||
|       containers: | ||||
|         - name: bots-frontend | ||||
|           image: registry-harbor.app.bangun-kreatif.com/empatnusabangsa/bots-frontend:<VERSION> | ||||
|           ports: | ||||
|             - containerPort: 3000 | ||||
|           envFrom: | ||||
|             - secretRef: | ||||
|                 name: nestjs-boilerplate-env | ||||
|       imagePullSecrets: | ||||
|         - name: regcred | ||||
|  | ||||
							
								
								
									
										24
									
								
								k8s/staging/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								k8s/staging/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| apiVersion: networking.k8s.io/v1 | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: bots-frontend | ||||
|   namespace: cariparkir-staging | ||||
|   annotations: | ||||
|     kubernetes.io/ingress.class: "traefik" | ||||
|     cert-manager.io/cluster-issuer: letsencrypt-prod | ||||
| spec: | ||||
|   rules: | ||||
|     - host: "bots-frontend.k3s.bangun-kreatif.com" | ||||
|       http: | ||||
|         paths: | ||||
|           - pathType: Prefix | ||||
|             path: / | ||||
|             frontend: | ||||
|               service: | ||||
|                 name: bots-frontend | ||||
|                 port: | ||||
|                   number: 5000 | ||||
|   tls: | ||||
|     - hosts: | ||||
|         - "bots-frontend.k3s.bangun-kreatif.com" | ||||
|       secretName: bots-frontend-k3s-bangun-kreatif-com-tls | ||||
							
								
								
									
										4
									
								
								k8s/staging/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								k8s/staging/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: cariparkir-staging | ||||
							
								
								
									
										13
									
								
								k8s/staging/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								k8s/staging/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: bots-frontend | ||||
|   namespace: cariparkir-staging | ||||
|   labels: | ||||
|     run: bots-frontend | ||||
| spec: | ||||
|   ports: | ||||
|     - port: 3000 | ||||
|       protocol: TCP | ||||
|   selector: | ||||
|     app:  bots-frontend | ||||
		Reference in New Issue
	
	Block a user