Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9b7f8038 authored by Jamalac Orange's avatar Jamalac Orange
Browse files

feat(k8s): update nodeSelector

parent e13aeb10
Branches
Tags
1 merge request!110feat(k8s): update nodeSelector
Pipeline #697553 passed
...@@ -2,18 +2,16 @@ apiVersion: apps/v1 ...@@ -2,18 +2,16 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: submission-code-server-deployment name: submission-code-server-deployment
namespace: submission-code
labels: labels:
app: submission-code # do not delete, used for billing app: submission-code
spec: spec:
revisionHistoryLimit: 1
selector: selector:
matchLabels: matchLabels:
app: submission-code-server app: submission-code-server
template: template:
metadata: metadata:
labels: labels:
app: submission-code-server # Bind by service selector>app: app: submission-code-server
spec: spec:
containers: containers:
- name: submission-app - name: submission-app
...@@ -46,6 +44,6 @@ spec: ...@@ -46,6 +44,6 @@ spec:
- name: SPRING_FLYWAY_BASELINE_VERSION - name: SPRING_FLYWAY_BASELINE_VERSION
value: "0" value: "0"
nodeSelector: nodeSelector:
cce.cloud.com/cce-nodepool: "caascad-inttac-ju-pod-tac-dashing-boa" caascad.io/nodepool: "pod-tac"
imagePullSecrets: imagePullSecrets:
- name: poc-inttac-poc-img-push-pull-secret - name: poc-inttac-poc-img-push-pull-secret
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: submission-code
resources: resources:
- deployment.yml - deployment.yml
- service.yml - service.yml
...@@ -2,13 +2,12 @@ apiVersion: v1 ...@@ -2,13 +2,12 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
app: submission-code # do not delete, used for billing app: submission-code
name: submission-code-server-service # Service name name: submission-code-server-service
namespace: submission-code
spec: spec:
type: NodePort type: NodePort
selector: selector:
app: submission-code-server # Defines app that will be targeted app: submission-code-server
ports: ports:
- port: 80 - port: 80
targetPort: 8080 targetPort: 8080
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment