Skip to content

Commit

Permalink
feat(deploy): test deployment to kubernetes azure
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Oct 28, 2024
1 parent 3f9e38e commit c069be2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ jobs:
env:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
run: |
az aks get-credentials --resource-group ""aks-resource-group" --name "aks-cluster"
az aks get-credentials --resource-group "aks-resource-group" --name "aks-cluster"
- name: Apply Kubernetes Deployment
working-directory: deploy/kubernetes
run: |
// remplacer la clé :latest par la version de l'image préfixé par :
sed -i 's/:latest/:${{ needs.tags.outputs.new_version }}/g' api-deployment.yaml
sed -i 's/:latest/:${{ needs.tags.outputs.new_version }}/g' webapp-deployment.yaml
kubectl apply -f webapp-deployment.yaml
Expand Down
17 changes: 16 additions & 1 deletion production/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,19 @@ services:
image: local.io/webapp-transcriptor:local
restart: "no"
ports:
- "4000:80"
- "4000:80"
slimfaas:
extra_hosts:
- host.docker.internal:host-gateway
image: docker.io/axaguildev/slimfaas:0.24.18
ports:
- 5020:5000
environment:
- BASE_FUNCTION_URL=http://{function_name}:8000
- BASE_FUNCTION_POD_URL=http://{function_name}:8000
- MOCK_KUBERNETES_FUNCTIONS={"Functions":[{"Name":"api","NumberParallelRequest":1},{"Name":"ia-worker","NumberParallelRequest":1}],"Slimfaas":[{"Name":"slimfaas-1"}]}
- BASE_SLIMDATA_URL=http://localhost:3262/
- HOSTNAME=slimfaas-1
- SLIMDATA_CONFIGURATION={"coldStart":"true"}
- SLIMFAAS_PORTS=5000,5020
#- SLIMFAAS_SUBSCRIBE_EVENTS=reload=>https://host.docker.internal:8000

0 comments on commit c069be2

Please sign in to comment.