0

When deploying, minikube is used

When using Helm Charts, I try to deploy hcp vault, but nothing works, the 'ingress' controller just freezes, tell me what the problem is. I tried to rearrange the port numbers at the moment when using the kubectl get ing --all-namespaces --watch command, it freezes and does not give out a simple address. I attach the yaml files below:

deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata: 
    name: {{ .Release.Name }}-opensource
    labels:
        app: {{ .Release.Name }}-opensource
spec:
    replicas: {{ .Values.other.replicaCount }}
    selector:
        matchLabels:
            app: {{ .Release.Name }}
    template:
        metadata:
            labels:
                app: {{ .Release.Name }}
        spec:
            containers:
                - name: {{ .Release.Name }}-hcp
                  image: {{ .Values.container.image }}
                  ports:
                    - containerPort: {{ .Values.container.port }}

ingress.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
    name: {{ .Values.other.ingressName }}

spec:
    rules:
        - host: hcv-devops-vault.local
          http:
            paths: 
                - pathType: Prefix
                  path: /
                  backend:
                    service: 
                        name: {{ .Release.Name }}-opensource-service
                        port:
                            number: 8200

service.yaml

apiVersion: v1
kind: Service
metadata: 
    name: {{ .Release.Name }}-opensource-service
spec:
    selector:
        app: {{ .Release.Name }}
    ports:
        - protocol: TCP
          port: 8200
          targetPort: 8200

Chart.yaml

apiVersion: v2
name: OpenSource
description: OpenSource program (Vault, ELK)
version: 3.11.2
appVersion: latest


keywords:
  - "vault"


maintainers:
  - name: Chelyshkov Anton
    email: godlike.web.design@gmail.com

values.yaml

# Default image Helm Chart


# Container value
container:
  port: 8200
  image: vault:latest



# Other value
other:
  ingressName: hcv-ingress
  replicaCount: 2

0 Answers0