Compare commits
	
		
			1 Commits
		
	
	
		
			hardi
			...
			17622dc610
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 17622dc610 | 
							
								
								
									
										2
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| .git/ | ||||
| k8s/ | ||||
							
								
								
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| FROM nginx:alpine | ||||
|  | ||||
| COPY . /usr/share/nginx/html/ | ||||
|  | ||||
| EXPOSE 80 | ||||
							
								
								
									
										22
									
								
								k8s/production/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								k8s/production/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: bka-web | ||||
|   namespace: empatnusabangsa-production | ||||
| spec: | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: bka-web | ||||
|   replicas: 1 | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: bka-web | ||||
|     spec: | ||||
|       containers: | ||||
|         - name: bka-web | ||||
|           image: registry-harbor.app.bangun-kreatif.com/empatnusabangsa/bka-web:<VERSION> | ||||
|           ports: | ||||
|             - containerPort: 80 | ||||
|       imagePullSecrets: | ||||
|         - name: regcred | ||||
							
								
								
									
										25
									
								
								k8s/production/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								k8s/production/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| apiVersion: networking.k8s.io/v1 | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: bka-web-ingress | ||||
|   namespace: empatnusabangsa-production | ||||
|   annotations: | ||||
|     kubernetes.io/ingress.class: "traefik" | ||||
|     cert-manager.io/cluster-issuer: letsencrypt-prod | ||||
|     traefik.ingress.kubernetes.io/router.middlewares: empatnusabangsa-production-redirect-https@kubernetescrd | ||||
| spec: | ||||
|   rules: | ||||
|     - host: "www.bangun-kreatif.com" | ||||
|       http: | ||||
|         paths: | ||||
|           - pathType: Prefix | ||||
|             path: / | ||||
|             backend: | ||||
|               service: | ||||
|                 name: bka-web | ||||
|                 port: | ||||
|                   number: 80 | ||||
|   tls: | ||||
|     - hosts: | ||||
|         - "www.bangun-kreatif.com" | ||||
|       secretName: www-bangun-kreatif-com-tls | ||||
							
								
								
									
										9
									
								
								k8s/production/middleware.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								k8s/production/middleware.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| apiVersion: traefik.containo.us/v1alpha1 | ||||
| kind: Middleware | ||||
| metadata: | ||||
|   name: redirect-https | ||||
|   namespace: empatnusabangsa-production | ||||
| spec: | ||||
|   redirectScheme: | ||||
|     scheme: https | ||||
|     permanent: true | ||||
							
								
								
									
										4
									
								
								k8s/production/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								k8s/production/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: empatnusabangsa-production | ||||
							
								
								
									
										13
									
								
								k8s/production/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								k8s/production/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: bka-web | ||||
|   namespace: empatnusabangsa-production | ||||
|   labels: | ||||
|     run: bka-web | ||||
| spec: | ||||
|   ports: | ||||
|     - port: 80 | ||||
|       protocol: TCP | ||||
|   selector: | ||||
|     app: bka-web | ||||
		Reference in New Issue
	
	Block a user