Fully working oc-k8s
This commit is contained in:
@@ -19,21 +19,12 @@ spec:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: oc-pem
|
||||
secret:
|
||||
secretName: oc-peer-pem
|
||||
optional: true
|
||||
containers:
|
||||
- image: "{{ .Values.ocPeer.image }}"
|
||||
name: oc-peer
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: opencloud-config
|
||||
volumeMounts:
|
||||
- name: oc-pem
|
||||
mountPath: /app/pem
|
||||
readOnly: true
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /oc/version
|
||||
@@ -41,6 +32,9 @@ spec:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
ports:
|
||||
- containerPort: 4001
|
||||
name: libp2p
|
||||
protocol: TCP
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
|
||||
@@ -7,6 +7,9 @@ metadata:
|
||||
app: oc-peer-svc
|
||||
spec:
|
||||
ports:
|
||||
- port: 4001
|
||||
targetPort: 4001
|
||||
name: libp2p
|
||||
- name: http
|
||||
port: 8080
|
||||
protocol: TCP
|
||||
|
||||
Reference in New Issue
Block a user