-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Clowdapp.yml file for Entitlements (#112)
* Push clowdapp.yml file for Entitlements Clowderization * Update Cloudwatch to pull from clowder acgConfig * remove optional dependencies from clowdapp.yaml * Get app-common-go package * Remove secret pulls that we don't need anymore
- Loading branch information
Showing
4 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Template | ||
metadata: | ||
name: entitlements-api-go | ||
objects: | ||
- apiVersion: cloud.redhat.com/v1alpha1 | ||
kind: ClowdApp | ||
metadata: | ||
name: entitlements-api-go | ||
spec: | ||
envName: ${ENV_NAME} | ||
deployments: | ||
- name: service | ||
webServices: | ||
public: | ||
enabled: True | ||
minReplicas: ${{API_REPLICAS}} | ||
podSpec: | ||
initContainers: | ||
- name: bundle-sync | ||
image: quay.io/cloudservices/entitlements-api-go:${IMAGE_TAG} | ||
command: ["/bundle-sync"] | ||
env: | ||
- name: ENT_SUBS_HOST | ||
value: ${SUBS_HOST} | ||
- name: ENT_BUNDLE_INFO_YAML | ||
value: /bundles/bundles.yml | ||
- name: ENT_CERTS_FROM_ENV | ||
value: 'true' | ||
- name: ENT_RUN_BUNDLE_SYNC | ||
value: ${RUN_BUNDLE_SYNC} | ||
envFrom: | ||
- secretRef: | ||
name: go-api-certs | ||
volumeMounts: | ||
- mountPath: /bundles | ||
name: default-entitlements-config | ||
inheritEnv: true | ||
minReadySeconds: 15 | ||
progressDeadlineSeconds: 600 | ||
image: quay.io/cloudservices/entitlements-api-go:${IMAGE_TAG} | ||
livenessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /status | ||
port: 3000 | ||
initialDelaySeconds: 20 | ||
timeoutSeconds: 60 | ||
readinessProbe: | ||
httpGet: | ||
path: /status | ||
port: 3000 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 60 | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 500Mi | ||
requests: | ||
cpu: 100m | ||
memory: 250Mi | ||
envFrom: | ||
- secretRef: | ||
name: go-api-certs | ||
env: | ||
- name: ENT_PORT | ||
value: ${PORT} | ||
- name: ENT_ENTITLE_ALL | ||
value: ${ENTITLE_ALL} | ||
- name: ENT_CERTS_FROM_ENV | ||
value: 'true' | ||
- name: ENT_CA_PATH | ||
value: /resources/ca.crt | ||
- name: ENT_SUBS_HOST | ||
value: ${SUBS_HOST} | ||
- name: ENT_COMPLIANCE_HOST | ||
value: ${COMPLIANCE_HOST} | ||
- name: ENT_OPENAPI_SPEC_PATH | ||
value: /apispec/api.spec.json | ||
- name: ENT_BUNDLE_INFO_YAML | ||
value: /bundles/bundles.yml | ||
- name: GLITCHTIP_DSN | ||
valueFrom: | ||
secretKeyRef: | ||
name: ${GLITCHTIP_SECRET} | ||
key: dsn | ||
optional: true | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
prometheus.io/port: '3000' | ||
prometheus.io/scrape: 'true' | ||
labels: | ||
app: entitlements-api-go | ||
name: entitlements-api-go | ||
spec: | ||
ports: | ||
- name: 3000-tcp | ||
port: 3000 | ||
protocol: TCP | ||
targetPort: 8000 | ||
selector: | ||
app: entitlements-service | ||
sessionAffinity: None | ||
type: ClusterIP | ||
status: | ||
loadBalancer: {} | ||
|
||
parameters: | ||
- description: Port for listener | ||
name: PORT | ||
value: '8000' | ||
- description: Subscriptions Service API endpoint | ||
name: SUBS_HOST | ||
value: https://subscription.qa.api.redhat.com | ||
- description: Export Compliance Service API endpoint | ||
name: COMPLIANCE_HOST | ||
value: https://export-compliance.dev.api.redhat.com | ||
- description: Name of the entitlements-config config map | ||
name: CONFIG_MAP_NAME | ||
value: entitlements-config | ||
- description: The number of replicas to use in the deployment | ||
name: REPLICAS | ||
value: '1' | ||
- description: Image tag | ||
name: IMAGE_TAG | ||
required: true | ||
- description: Flag to determine whether or not to sync bundles on init | ||
name: RUN_BUNDLE_SYNC | ||
required: false | ||
value: 'false' | ||
- description: Flag to determine whether or not to entitle all by default and mock calls to IT | ||
name: ENTITLE_ALL | ||
required: false | ||
value: 'false' | ||
- description: The name of the Glitchtip secret | ||
name: GLITCHTIP_SECRET | ||
required: false | ||
value: 'entitlements-secret' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters