Replace Deployment, but apply changes on Service and Ingress

parent 17c597fe
......@@ -32,7 +32,7 @@ metadata:
name: $KUBE_NAMESPACE
EOF
cat <<EOF | kubectl apply -n $KUBE_NAMESPACE -f -
cat <<EOF | kubectl replace -n $KUBE_NAMESPACE -f -
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
......@@ -71,7 +71,9 @@ spec:
port: 5000
initialDelaySeconds: 5
timeoutSeconds: 3
---
EOF
cat <<EOF | kubectl apply -n $KUBE_NAMESPACE -f -
apiVersion: v1
kind: Service
metadata:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment