View redis-command.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
command: [ "sh", "-c" ] | |
args: | |
- | | |
nohup sh /conf/redis-startup.sh & | |
redis-server /conf/redis.conf | |
... |
View initContainers-command.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
command: [ "sh", "-c" ] | |
args: | |
- | | |
if [ -f "/conf/redis.conf" ]; then | |
echo "config exists /conf/redis.conf .. not creating new" | |
if [ -f "/tmp/startup/redis-startup.sh" ];then | |
cp /tmp/startup/redis-startup.sh /conf/redis-startup.sh | |
fi | |
else |
View redis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: redis | |
namespace: redis | |
spec: | |
serviceName: redis | |
replicas: 6 | |
selector: | |
matchLabels: |
View redis-startup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: redis-startup | |
namespace: redis | |
data: | |
redis-startup.sh: | | |
#!/bin/sh | |
if [ -f "/conf/nodes-6379.conf" ]; then | |
echo "Cluster details exists /conf/nodes-6379.conf.. starting script to do CLUSTER MEET when node is up" |
View istio-in-vs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: istio-in-vs | |
namespace: istio | |
spec: | |
# This is one of the hosts mentioned in the Gateway. | |
hosts: | |
- "sub1.example.ca" | |
gateways: |
View istio-in-gw.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
# this is name we use to connect from VirtualServices. | |
name: istio-in-gw | |
namespace: istio | |
spec: | |
selector: | |
# this is to connect the Service created. "Instio Ingress Service" | |
# this should match to connect the Service to gatway. |
View istio-ingress-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service: | |
# service type - Change if you are other | |
type: LoadBalancer | |
ports: | |
# configure the ports you need to connect. http/https | |
# An example of http is given | |
- name: http | |
port: 80 | |
protocol: TCP | |
targetPort: 80 |
View istiod-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
istioNamespace: istio | |
# to restrict apps to connect only to apps in the istio registry | |
outboundTrafficPolicy: REGISTRY_ONLY | |
meshConfig: | |
outboundTrafficPolicy: | |
# to restrict apps to connect only to apps in the istio registry | |
mode: REGISTRY_ONLY | |
rootNamespace: istio |
View istio-base-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
# we are setting the CRD to be namespace scoped into `istio` namespace. | |
istioNamespace: istio |
View sentinel-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: sentinel | |
namespace: redis | |
spec: | |
clusterIP: None | |
ports: | |
- port: 5000 | |
targetPort: 5000 |
NewerOlder