You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
kind: Deployment |
|
apiVersion: apps/v1 |
|
metadata: |
|
name: gateway |
|
namespace: huoranmicro |
|
labels: |
|
app: gateway |
|
version: v1 |
|
spec: |
|
replicas: 1 |
|
selector: |
|
matchLabels: |
|
app: gateway |
|
version: v1 |
|
template: |
|
metadata: |
|
labels: |
|
app: gateway |
|
version: v1 |
|
spec: |
|
containers: |
|
- name: gateway |
|
image: $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME |
|
ports: |
|
- containerPort: 8080 |
|
protocol: TCP |
|
resources: |
|
limits: |
|
cpu: 1000m |
|
memory: 1000Mi |
|
requests: |
|
cpu: 100m |
|
memory: 100Mi |
|
terminationMessagePath: /dev/termination-log |
|
terminationMessagePolicy: File |
|
imagePullPolicy: IfNotPresent |
|
restartPolicy: Always |
|
terminationGracePeriodSeconds: 30 |
|
serviceName: gateway |
|
podManagementPolicy: OrderedReady |
|
updateStrategy: |
|
type: RollingUpdate |
|
rollingUpdate: |
|
partition: 0 |
|
revisionHistoryLimit: 10 |
|
|
|
--- |
|
kind: Service |
|
apiVersion: v1 |
|
metadata: |
|
name: gateway |
|
namespace: huoranmicro |
|
labels: |
|
app: gateway |
|
version: v1 |
|
spec: |
|
ports: |
|
- name: http |
|
protocol: TCP |
|
port: 8080 |
|
targetPort: 8080 |
|
nodePort: 20001 |
|
selector: |
|
app: gateway |
|
type: NodePort |
|
sessionAffinity: None |