-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
32 lines (32 loc) · 991 Bytes
/
skaffold.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apiVersion: skaffold/v4beta1
kind: Config
metadata:
name: skaffold-fastapi
build:
artifacts:
- image: fastapi
context: fastapi
local:
push: false
manifests:
# rawYaml:
# - ./raw-k8-yaml/namespace.yaml
# - ./raw-k8-yaml/dockerconfigjson.yaml
# - ./raw-k8-yaml/ingress-nginx.yaml
helm:
releases:
- name: fastapi
skipTests: true # Because kind clusters is not okayish with tests
chartPath: ./fastapi/helm-chart
valuesFiles:
- ./fastapi/development.env.yaml
setValueTemplates:
image.repository: "{{ .IMAGE_REPO_fastapi }}"
image.tag: "{{ .IMAGE_TAG_fastapi }}"
# Used skaffold-generated image repo and tag for our deployment. For more https://skaffold.dev/docs/deployers/helm/
portForward:
- resourceType: deployment
resourceName: fastapi # Find the exact resource name using this command `kubectl get deployments`
port: 8080
address: 0.0.0.0
localPort: 8080