infra/terraform: add k8s module file for my portfolio
- added k8s module file for my portfolio manifest
This commit is contained in:
		| @ -2,6 +2,7 @@ apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: portfolio-app | ||||
|   namespace: my-portfolio | ||||
|   labels: | ||||
|     app: portfolio-app | ||||
| spec: | ||||
| @ -15,7 +16,7 @@ spec: | ||||
|         app: portfolio-app | ||||
|     spec: | ||||
|       imagePullSecrets: | ||||
|         - name: my-registry-secret | ||||
|         - name: docker-registry-credentials | ||||
|       containers: | ||||
|         - name: portfolio-app | ||||
|           image: "${DOCKER_REGISTRY_HOST}/taqi/portfolio/my-portfolio-app:latest" | ||||
| @ -29,6 +30,7 @@ apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: portfolio-app-svc | ||||
|   namespace: my-portfolio | ||||
| spec: | ||||
|   type: ClusterIP | ||||
|   ports: | ||||
| @ -42,6 +44,7 @@ apiVersion: networking.k8s.io/v1 | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: portfolio | ||||
|   namespace: my-portfolio | ||||
|   annotations: | ||||
|     traefik.ingress.kubernetes.io/router.entrypoints: websecure | ||||
|     cert-manager.io/cluster-issuer: "acme-issuer" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user