| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: gateway
- namespace: alien-produ
- labels:
- app: gateway
- track: stable
- spec:
- replicas: 2
- selector:
- matchLabels:
- app: gateway
- track: stable
- template:
- metadata:
- labels:
- app: gateway
- track: stable
- spec:
- imagePullSecrets:
- - name: harbor-registry
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 100
- podAffinityTerm:
- labelSelector:
- matchLabels:
- app: gateway
- topologyKey: kubernetes.io/hostname
- containers:
- - name: app
- image: 39.106.135.88/alien_cloud/gateway:build-1
- imagePullPolicy: Always
- ports:
- - containerPort: 8000
- resources:
- requests:
- cpu: 250m
- memory: 512Mi
- limits:
- cpu: "1"
- memory: 1200Mi
- env:
- - name: TZ
- value: Asia/Shanghai
- # - name: JASYPT_ENCRYPTOR_PASSWORD
- # valueFrom:
- # secretKeyRef:
- # name: alien-jasypt
- # key: password
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: gateway
- namespace: alien-produ
- spec:
- selector:
- app: gateway
- track: stable
- ports:
- - port: 8000
- targetPort: 8000
|