Skip to content

Commit

Permalink
minor: minor changes in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ramantehlan committed Jun 6, 2024
1 parent 1c600ad commit aa2d917
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
13 changes: 13 additions & 0 deletions operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,16 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

## Troubleshoot

#### When namespace in terminating state forever
- Get namespace json
```
kubectl get namespace elasti-operator-system -o json > tmp.json
```
- Remove finalizer from it
- Force apply the raw file
```
k replace --raw "/api/v1/namespaces/elasti-operator-system/finalize" -f tmp.json
```

Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,26 @@ spec:
deploymentName:
type: string
idlePeriod:
description: Idle Period is how long should the target VirtualService
be Idle(without requests), before we scale it down to 0.
format: int32
type: integer
minReplicas:
format: int32
type: integer
queueTimeout:
description: How long do playground hold the request for, before dumping
the queue. Default is 60s.
format: int32
type: integer
scaleTargetRef:
description: |-
INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Important: Run "make" to regenerate code after modifying this file
properties:
apiVersion:
type: string
kind:
type: string
name:
type: string
type: object
service:
type: string
type: object
Expand All @@ -65,8 +76,6 @@ spec:
type: string
mode:
type: string
state:
type: string
type: object
type: object
served: true
Expand Down
2 changes: 1 addition & 1 deletion operator/config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resources:
# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'.
#- ../prometheus

patches:
patches: []
# [METRICS] The following patch will enable the metrics endpoint. Ensure that you also protect this endpoint.
# More info: https://book.kubebuilder.io/reference/metrics
# If you want to expose the metric endpoint of your controller-manager uncomment the following line.
Expand Down

0 comments on commit aa2d917

Please sign in to comment.