Last active
March 27, 2023 19:52
-
-
Save cejas1719/2efe4caa3c758820234abe6c4f2bf092 to your computer and use it in GitHub Desktop.
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
apiVersion: apps.openshift.io/v1 | |
kind: DeploymentConfig | |
metadata: | |
labels: | |
app: app1 | |
name: app1 | |
namespace: app1-dev | |
spec: | |
replicas: 1 | |
selector: | |
app: app1 | |
deploymentconfig: app1 | |
template: | |
metadata: | |
annotations: | |
openshift.io/container.app1.image.entrypoint: '["<Command_to>","<start_the_app>"]' | |
labels: | |
app: app1 | |
deploymentconfig: app1 | |
spec: | |
containers: | |
- env: | |
- name: APP_NAME | |
value: app1 | |
envFrom: | |
- configMapRef: | |
name: dev-platform | |
image: <quay_registry_image_name:tag> | |
imagePullPolicy: Always | |
name: app1 | |
ports: | |
- containerPort: 80 | |
protocol: TCP | |
resources: | |
limits: | |
cpu: "1" | |
memory: 2Gi | |
requests: | |
cpu: 200m | |
memory: 256Mi | |
terminationMessagePath: <path_for_termination_log> | |
terminationMessagePolicy: File | |
dnsPolicy: ClusterFirst | |
restartPolicy: Always | |
schedulerName: default-scheduler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment