Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

## Upgrade from v5.0.0 to v5.1.0

- removed `namespace.yaml` manifest from kustomize resources ([#79](https://github.com/shopsys/deployment/pull/79))
- define autoscaling behavior with rolling update strategy ([#78](https://github.com/shopsys/deployment/pull/78))
- removed GCloud-specific docker registry secret creation ([#77](https://github.com/shopsys/deployment/pull/77))
- improved probes and graceful shutdown for storefront ([#76](https://github.com/shopsys/deployment/pull/76))
Expand Down
4 changes: 2 additions & 2 deletions deploy/parts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if [ $DISPLAY_FINAL_CONFIGURATION -eq "1" ]; then
fi

echo -n " Apply configuration "
runCommand "ERROR" "kustomize build --load-restrictor LoadRestrictionsNone \"${CONFIGURATION_TARGET_PATH}/kustomize/migrate-application/${KUSTOMIZE_FOLDER}\" | kubectl apply -f -"
runCommand "ERROR" "kustomize build --load-restrictor LoadRestrictionsNone \"${CONFIGURATION_TARGET_PATH}/kustomize/migrate-application/${KUSTOMIZE_FOLDER}\" | kubectl apply -n ${PROJECT_NAME} -f -"

echo -n " Waiting for migrate application "

Expand Down Expand Up @@ -158,7 +158,7 @@ if [ $DISPLAY_FINAL_CONFIGURATION -eq "1" ]; then
fi

echo -n " Deploy Webserver and PHP-FPM container with Storefront"
runCommand "ERROR" "kustomize build --load-restrictor LoadRestrictionsNone \"${CONFIGURATION_TARGET_PATH}/kustomize/webserver\" | kubectl apply -f -"
runCommand "ERROR" "kustomize build --load-restrictor LoadRestrictionsNone \"${CONFIGURATION_TARGET_PATH}/kustomize/webserver\" | kubectl apply -n ${PROJECT_NAME} -f -"

echo -n " Waiting for start new PHP-FPM and Storefront container (In case of fail you need to manually check what is state of application)"
runCommand "ERROR" "kubectl rollout status --namespace=${PROJECT_NAME} deployment/webserver-php-fpm deployment/storefront --watch"
Expand Down
1 change: 0 additions & 1 deletion kubernetes/horizontalPodAutoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: webserver-php-fpm
namespace: "{{PROJECT_NAME}}"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
1 change: 0 additions & 1 deletion kubernetes/horizontalStorefrontAutoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: storefront
namespace: "{{PROJECT_NAME}}"
spec:
scaleTargetRef:
apiVersion: apps/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
resources:
- ../../../deployments/redis.yaml
- ../../../services/redis.yaml
- ../../../namespace.yaml
- ../../../configmap/redis.yaml
- ../../../configmap/redis-health.yaml
- ../../../deployments/rabbitmq.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
resources:
- ../../../deployments/redis.yaml
- ../../../services/redis.yaml
- ../../../namespace.yaml
- ../../../configmap/redis.yaml
- ../../../configmap/redis-health.yaml
- ../../../deployments/rabbitmq.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
resources:
- ../../../deployments/redis.yaml
- ../../../services/redis.yaml
- ../../../namespace.yaml
- ../../../configmap/redis.yaml
- ../../../configmap/redis-health.yaml
- ../../../deployments/rabbitmq.yaml
Expand Down
1 change: 0 additions & 1 deletion kubernetes/kustomize/webserver/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resources:
- ../../deployments/storefront.yaml
- ../../deployments/cron.yaml
- ../../services/storefront.yaml
- ../../namespace.yaml
- ../../configmap/nginx.yaml
- ../../configmap/production-php-fpm.yaml
- ../../configmap/production-php-opcache.yaml
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/namespace.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
4 changes: 0 additions & 4 deletions tests/scenarios/basic-production/expected/namespace.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions tests/scenarios/basic-production/expected/webserver.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
.project_env.sh: |
export ELASTICSEARCH_HOST='http://elasticsearch:9200'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-dev
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-dev
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-dev
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-dev
---
apiVersion: v1
data:
.project_env.sh: |
export ELASTICSEARCH_HOST='http://elasticsearch:9200'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
4 changes: 0 additions & 4 deletions tests/scenarios/escaping-env/expected/namespace.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions tests/scenarios/escaping-env/expected/webserver.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: myproject-production
---
apiVersion: v1
data:
.project_env.sh: |
export ELASTICSEARCH_HOST='http://elasticsearch:9200'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shop-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shop-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shop-production
---
apiVersion: v1
data:
domains_urls.yaml: |
domains_urls:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shop-production
---
apiVersion: v1
data:
.project_env.sh: |
export ELASTICSEARCH_HOST='http://elasticsearch:9200'
Expand Down