Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- labels:
- app: oracle
- {{- include "helm.labels" . | indent 4 }}
- name: oracle
- spec:
- replicas: 1
- template:
- metadata:
- labels:
- {{- include "helm.labels" . | indent 8 }}
- app: oracle
- spec:
- hostname: oracle
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: cloud.google.com/gke-nodepool
- operator: NotIn
- values:
- - proxy-cloud
- containers:
- - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- command: ["python3"]
- args: [
- "-Wdefault",
- "-m",
- "test.oracle",
- ]
- name: oracle
- ports:
- - containerPort: 50051
- protocol: TCP
- restartPolicy: Always
- ---
- apiVersion: v1
- kind: Service
- metadata:
- labels:
- app: oracle
- {{- include "helm.labels" . | indent 4 }}
- name: oracle
- spec:
- ports:
- - name: "50051"
- port: 50051
- targetPort: 50051
- type: NodePort
- selector:
- app: oracle
- status:
- loadBalancer: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement