Last active
January 22, 2025 14:03
-
-
Save quangvinh2080/e9b7f607674c1be21bb591a1b2d68785 to your computer and use it in GitHub Desktop.
a simple deployment with service #kubernetes
This file contains hidden or 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/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| io.kompose.service: oryza-erp | |
| name: oryza-erp | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| io.kompose.service: oryza-erp | |
| template: | |
| metadata: | |
| labels: | |
| io.kompose.service: oryza-erp | |
| spec: | |
| containers: | |
| - env: | |
| - name: HOST | |
| valueFrom: | |
| configMapKeyRef: | |
| key: HOST | |
| name: oryza-erp-env | |
| - name: PORT | |
| valueFrom: | |
| configMapKeyRef: | |
| key: PORT | |
| name: oryza-erp-env | |
| - name: USER | |
| valueFrom: | |
| configMapKeyRef: | |
| key: USER | |
| name: oryza-erp-env | |
| - name: PASSWORD | |
| valueFrom: | |
| configMapKeyRef: | |
| key: PASSWORD | |
| name: oryza-erp-env | |
| - name: ODOO_TAG | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_TAG | |
| name: oryza-erp-env | |
| - name: ODOO_RC | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_RC | |
| name: oryza-erp-env | |
| - name: USE_REDIS | |
| valueFrom: | |
| configMapKeyRef: | |
| key: USE_REDIS | |
| name: oryza-erp-env | |
| - name: USE_S3 | |
| valueFrom: | |
| configMapKeyRef: | |
| key: USE_S3 | |
| name: oryza-erp-env | |
| - name: USE_SENTRY | |
| valueFrom: | |
| configMapKeyRef: | |
| key: USE_SENTRY | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_HOST | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_HOST | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_PORT | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_PORT | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_PASSWORD | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_PASSWORD | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_URL | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_URL | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_PREFIX | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_PREFIX | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_SENTINEL_MASTER_NAME | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_SENTINEL_MASTER_NAME | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_SENTINEL_HOST | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_SENTINEL_HOST | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_SENTINEL_PORT | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_SENTINEL_PORT | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_EXPIRATION | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_EXPIRATION | |
| name: oryza-erp-env | |
| - name: ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS | |
| valueFrom: | |
| configMapKeyRef: | |
| key: ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS | |
| name: oryza-erp-env | |
| - name: AWS_HOST | |
| valueFrom: | |
| configMapKeyRef: | |
| key: AWS_HOST | |
| name: oryza-erp-env | |
| - name: AWS_REGION | |
| valueFrom: | |
| configMapKeyRef: | |
| key: AWS_REGION | |
| name: oryza-erp-env | |
| - name: AWS_ACCESS_KEY_ID | |
| valueFrom: | |
| configMapKeyRef: | |
| key: AWS_ACCESS_KEY_ID | |
| name: oryza-erp-env | |
| - name: AWS_SECRET_ACCESS_KEY | |
| valueFrom: | |
| configMapKeyRef: | |
| key: AWS_SECRET_ACCESS_KEY | |
| name: oryza-erp-env | |
| - name: AWS_BUCKETNAME | |
| valueFrom: | |
| configMapKeyRef: | |
| key: AWS_BUCKETNAME | |
| name: oryza-erp-env | |
| image: registry.oryza.vn/oryza_erp:latest | |
| name: oryza-erp-container | |
| ports: | |
| - containerPort: 8069 | |
| protocol: TCP | |
| restartPolicy: Always |
This file contains hidden or 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: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| io.kompose.service: oryza-erp | |
| name: oryza-erp | |
| spec: | |
| ports: | |
| - name: "8069" | |
| port: 8069 | |
| targetPort: 8069 | |
| selector: | |
| io.kompose.service: oryza-erp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment