Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.27 KB

ports.md

File metadata and controls

44 lines (31 loc) · 1.27 KB

ports

ports value in Kubedeploy can be used to define main container exposed ports. User can define container exposed ports see: containerPort for example

!!! note By default container ports are undefined.

As bare minimum, ports should take a list of contarinerPort, however user can name the ports and define port protocol.

!!! example "Define main container exposed ports"

```yaml title="values.yaml" linenums="6-12"
nameOverride: my-app
image:
  repository: nginx
  tag: latest

ports:
  # minimal configuration
  - containerPort: 80
  # extended configuration
  - contarinerPort: 8080
    name: extrahttp
    protocol: TCP
```

```bash title="Deploy command"
helm install webapp sysbee/kubedeploy -f values.yaml
```

!!! note

`additionalContainer` can define their own exposed ports, for more info see the related configuration values

!!! note

`service` and `ingress` will require at least one exposed port to properly route traffic to your application. For more info see the related configuration values.

See also: