diff --git a/app/kubernetes/config.go b/app/kubernetes/config.go index 941f7390..8b29e95c 100644 --- a/app/kubernetes/config.go +++ b/app/kubernetes/config.go @@ -72,8 +72,6 @@ func (c *Cluster) GetConfig(ctx context.Context, namespace string) (model.Config } } - fmt.Println(result) - result.Exists = true return result, nil diff --git a/deployment/k8s/incluster/README.md b/deployment/k8s/incluster/README.md index 03d16465..0b0c6172 100644 --- a/deployment/k8s/incluster/README.md +++ b/deployment/k8s/incluster/README.md @@ -76,4 +76,13 @@ $ curl -X POST \ -H "X-API-KEY: 1234" \ -d '{"version":"0.2.4","strategy":"recreate"}' \ http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad/deployment + +# Get application `toad` version +$ curl http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad -H "X-API-KEY: 1234" -s | jq . + +# Another deployment with ramped strategy +$ curl -X POST \ + -H "X-API-KEY: 1234" \ + -d '{"version":"0.2.3","strategy":"ramped", "maxSurge": "1", "maxUnavailable": "0"}' \ + http://example.com/beetle/api/v1/cluster/production/namespace/default/app/toad/deployment ``` diff --git a/deployment/k8s/incluster/beetle.yaml b/deployment/k8s/incluster/beetle.yaml index 848c0704..17168acc 100644 --- a/deployment/k8s/incluster/beetle.yaml +++ b/deployment/k8s/incluster/beetle.yaml @@ -57,7 +57,7 @@ data: # App configs app: # Env mode (dev or prod) - mode: ${BEETLE_APP_MODE:-dev} + mode: ${BEETLE_APP_MODE:-prod} # HTTP port port: ${BEETLE_API_PORT:-8080} # App URL @@ -110,7 +110,6 @@ data: name: ${BEETLE_KUBE_CLUSTER_01_NAME:-production} inCluster: ${BEETLE_KUBE_CLUSTER_01_IN_CLUSTER:-true} kubeconfig: ${BEETLE_KUBE_CLUSTER_01_CONFIG_FILE:- } - configMapName: ${BEETLE_KUBE_CLUSTER_01_CONFIG_MAP:-beetle-applications-configs} # HTTP Webhook webhook: